Self-signed cert for Apache

Here are the steps to create a self signed certificate. Replace [domain_name] with the actual domain name of the virtual host.

1. create key

openssl genrsa -out [domain_name].key 4096

2. generate certificate signing request

openssl req -new -key [domain_name].key -out [domain_name].csr

3. generate the certificate

openssl x509 -req -days 365 -in [domain_name].csr -signkey [domain_name].key \
   -out [domain_name].crt
blog comments powered by Disqus