Quote:
Originally Posted by Panicked
Objective is functional offline testing. Would like to see http fail and https succeed before exposing to the www.
I have a public domain that is inaccessible from the dev environment. How do I issue a self-signed certificate?
|
That is still not very clear - functional offline testing of what exactly - server config, SSL/TLS methods, website code...?
How should http fail and https succeed, exactly? A better description of what you are trying to accomplish would go a long way.
In the mean time, if you just need a certificate, you can generate your own on just about any GNU/Linux platform:
Code:
openssl req -new -x509 -sha256 -days 365 -nodes -out /etc/ssl/path-to-certs/example.com.crt
-keyout /etc/ssl/path-to-keys/example.com.key
chmod 600 /etc/ssl/path-to-{certs,keys}/example.com*
Adjust for your actual paths, then restart your web server. When you request the site the first time it will ask you to grant an exception for the self-signed cert, but it will all work as expected, assuming your server is configured correctly.