Joyent

Translations of this page:

Basic SSL for use with Web and Mail

1) Make a directory to keep stuff

mkdir /home/ssl/
cd /home/ssl/

2) Make a key

openssl genrsa -out part.domain.com.key 2048

3) Generate a csr (during this part, put in the part.domain.com that you want SSL'ed in the “common name”)

openssl req -new -key part.domain.com.key -out part.domain.com.csr

4) You can self-sign the cert


openssl x509 -req -days 365 -in part.domain.com.csr -signkey part.domain.com.key -out part.domain.com.crt

Or you can get a certificate from a 3rd party provider, such as Godaddy. If you go this route, place the .crt file in the directory you created in step 1.

5) Create a pem file as well

cat part.domain.com.crt part.domain.com.key > part.domain.com.pem

6) Edit Virtual Server

add the following code to your server (yoursitename.com.conf) in /opt/csw/apache2/etc/virtualhosts

<VirtualHost 8.12.34.201:443>
# your server settings here
SSLEngine on                                                                                      
SSLCertificateFile /home/ssl/part.domain.com.crt                                           
SSLCertificateKeyFile /home/ssl/part.domain.com.key       
</VirtualHost>   

7) Restart apache.

 
accelerators/basic_ssl_web_mail.txt · Last modified: 2008/08/06 13:09 by lderezinski
 
Recent changes RSS feed Creative Commons License Driven by DokuWiki