openssl req -new -nodes -newkey rsa:2048 -keyout foo.com.key -out foo.com.csr
check the settings
openssl req -text -noout -in foo.com.csr
for example from http://cacert.org
svcadm disable apache2
svccfg -s apache2 setprop httpd/ssl = boolean: 'true'
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/foo.com.cert
SSLCertificateKeyFile /etc/apache2/foo.com.key
...
svcadm enable apache2