Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1535

Can't add CA certificate for localhost

$
0
0

I have Ubuntu 22.04.4 LTS. I've been developing telegram bot and tried to create nginx configuration for remote server. During this i've broken my localhost certifiate. Now when i run my react app on https port i get this:

https://i.stack.imgur.com/H9iS7.png

https://i.stack.imgur.com/KLrle.png

i get logs using curl:https://i.stack.imgur.com/TFh72.png

I have tried to create and sign certificate with:

openssl genrsa -out rootCA.keyopenssl req -x509 -new -nodes -key rootCA.key -sha256 -days 1024 -out rootCA.pemopenssl req -new -key rootCA.key -out org.csropenssl x509 -req -in org.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out org.crt -days 365 -sha256

I'm using this config:

C = GE  # CountryST = TbilisiL = TbilisiO = YourOrganizationNameCN = localhost

Then i copy org.crt to the /usr/local/share/ca-certificatesI' trying to update certs with: sudo update-ca-certificatesI see in the logs that one cert has been added, but when i'm trying to run my react app i get crtificate errors again. It's seems like this certificate was not applied, because certificate in the google chrome has the same date no matter how many certificates I add.


Viewing all articles
Browse latest Browse all 1535

Trending Articles