Skip to main content

SSL Web Server

Generate Certificates

Method 1

mkdir /etc/apache2/ssl
cd /etc/apache2/ssl
openssl genrsa -out my-test-web.key 2048
openssl req -new -key my-test-web.key -out my-test-web.csr
openssl x509 -req -days 3650 -in my-test-web.csr -signkey my-test-web.key -out my-test-web.crt

 

Apache Setup