NOTES
Site with self-signed TLS certificate
Create certificate
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \ -keyout /etc/ssl/private/test.localhost.key \ -out /etc/ssl/certs/test.localhost.crt \ -subj "/C=US/ST=State/L=City/O=Organization/OU=Unit/CN=test.localhost"
Virtual host for site
ServerName test.localhost AssignUserID test test ServerAdmin webmaster@localhost DocumentRoot /srv/test/www ErrorLog /srv/test/log/error.log CustomLog /srv/test/log/access.log combined
AllowOverride All
SSLEngine on SSLCertificateFile /etc/ssl/certs/test.localhost.crt SSLCertificateKeyFile /etc/ssl/private/test.localhost.key
Older Post
Home