Code: Select all
openssl req -new -x509 -nodes -out my_cert.pem -keyout my_privkey.pem
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:SE
State or Province Name (full name) [Some-State]:My State
Locality Name (eg, city) []:.
Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Company
Organizational Unit Name (eg, section) []:Web
Common Name (eg, YOUR name) []:app1.my.dyndns.com
Email Address []:info@app1.my.dyndns.com
This will generate the two files:
my_cert.pem - the certificate
my_privkey.pem - the private key used
Update your apache config entries SSLCertificateFile and SSLCertificateKeyFile to point to these new files or replace the old files. Then reload apache.
Code: Select all
/etc/init.d/apache2 reload