#henrik

development and technology stuff

OpenSSL - self signed certificat

Creating self-signed certs for apache on ubuntu is plain easy. I found a debuntu howto:

sudo openssl req -new -x509 -days 365
  -nodes -out /path/to/cert.pem -keyout /path/to/cert.pem

After that just use the certificate in your apache config:

SSLEngine on
SSLCertificateFile /etc/apache2/ssl/cert.pem
SSLProtocol all
SSLCipherSuite HIGH:MEDIUM

Filed under  //   Linux   apache   openssl