It is very simple and quick to create a self-signed certificate on your development machine. Of course you would never use this on a production server because self-signed certificates are vulnerable to man in the middle attacks.
You will need to make sure that you have the ssl-cert and libapache2-mod-gnutls packages installed.
Step One: Use the ssl-cert package to create a self-signed certificate. This will create the certificate files in /etc/ssl which is where the Ubuntu default Apache configuration expects to find them.
make-ssl-cert generate-default-snakeoil --force-overwrite
Step Two: Active the SSL module and the default SSL site using the convenience wrappers:
You will need to make sure that you have the ssl-cert and libapache2-mod-gnutls packages installed.
Step One: Use the ssl-cert package to create a self-signed certificate. This will create the certificate files in /etc/ssl which is where the Ubuntu default Apache configuration expects to find them.
make-ssl-cert generate-default-snakeoil --force-overwrite
Step Two: Active the SSL module and the default SSL site using the convenience wrappers:
a2enmod ssl
a2ensite default-ssl
Step Three: Restart Apacheservice apache2 restart
I will definitely try these steps to create a self signed certificate. I will get back to you if any problem arise. Thanks for sharing.
ReplyDeletedigital certificate