NGINX StartSSL Certificate

NGINX StartSSL Certificate

Configure NGINX vhost with StartSSL certificate

# Remove the password
openssl rsa -in ssl.key -out /etc/nginx/conf/ssl.key
chmod 600 /etc/nginx/conf/ssl.key
wget http://www.startssl.com/certs/sub.class1.server.ca.pem

# Create a unified certificate from your certificate and the CA certificates
cat ssl.crt sub.class1.server.ca.pem > /etc/nginx/conf/ssl-unified.crt

# Configure your nginx server to use the new key and certificate
ssl on;
ssl_certificate /etc/nginx/conf/ssl-unified.crt;
ssl_certificate_key /etc/nginx/conf/ssl.key;