Generate an SSL Certificate
- Let’s Encrypt – Certificate authority that delivers free SSL certificates.
- BadSSL – examples
- Convert certificate to the other formats
Import SSL certificates for the whole system
Import SSL certificates for the whole system. Will be used by applications like apt, wget, etc.
sudo mkdir /usr/share/ca-certificates/extra
# Move certificates
sudo mv rootCert.crt /usr/share/ca-certificates/extra/rootCert.crt
cd /usr/share/ca-certificates/extra
# When in PEM format, convert PEM to CRT
#openssl x509 -in rootCert.pem -inform PEM -out rootcaCert.crt
sudo dpkg-reconfigure ca-certificates
Select Yes
Use the spacebar to select a certificate, then tab to go to OK
Press Enter
sudo update-ca-certificates
Don’t forget to import the certificates (.crt) in Firefox.