Sysadmin > SolarIs > Apache2SSL

How to enable SSL on solaris 10

create a certificate or a certificate signing request

openssl req -new -nodes -newkey rsa:2048 -keyout -out

check the settings

openssl req -text -noout -in

go to your favorite CA and let your certificate sign

for example from

come back with a signed certificate

stop apache

svcadm disable apache2

enable SSL

svccfg -s apache2 setprop httpd/ssl = boolean: 'true'

configure apache for SSL

Solaris 10 ships with a functional /etc/apache2/ssl.conf file: edit the file and make sure the SSLCertificate* directive are pointing to your certificate and its key.

More or less you have to add
Listen 443
NameVirtualHost 443

<VirtualHost *:443>
    SSLEngine on
    SSLCertificateFile /etc/apache2/
    SSLCertificateKeyFile /etc/apache2/


start apache

svcadm enable apache2

test your site

openssl s_client -connect -state -debug