Apparently you’re not doing anything wrong. The fault indicating that the page is not secure appears because the certificate is self-signed (created by you). Read here a clarification on this. As you see, it is possible to say to the Firefox
that the certificate, although self-signed, is reliable. But the message at all times will appear unless you purchase a certificate signed by a trusted certification institution (more details).
In short, to use certificate created by yourself, you will always have to "force" the browser to trust it.
To generate certificate without password (assuming you use openssl
), just pass the option -nodes
in the creation command, something like this: openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout local_da_key/nome.key -out local_do_certificado/nome.crt
That information came from here, and in free translation, it’s more or less that:
-nodes: This option informs Openssl that we do not want to protect our key file with a password. Having a password-protected key file would disrupt automatic Apache startup, as we would have to enter the password every time the service was restarted.
I believe that the step by step tutorial I indicated is very good to learn the basics.
If you have a public domain registered to want free certification, it is worth knowing https://letsencrypt.org/, which together with https://certbot.eff.org/ are an excellent tool (See a tutorial for Apache here).
You have created or are purchasing this certificate?
– ShutUpMagda
I want to create for local use
– Tales Breno
Friend, I usually follow this tutorial [https://servidordebian.org/pt/jessie/intranet/ssl_cert/start]. You can help yourself.
– Isaque Fernando
Thanks @Isaquefernando I think it will help yes!
– Tales Breno
The case was solved with this tutorial: https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-apache-for-ubuntu-14-04
– Tales Breno
@Talesbreno would be nice to explain better in your reply how it was solved (not only with the link) because the way it was, just a comment and not a link as a response. If you would be so kind as to explain at least the essential steps, it’s nice for other visitors with the same problem.
– Bacco
The case was solved with the tutorial I indicated in the reply... Thanks ;)
– ShutUpMagda