openssl req -new -text -out domain.req
openssl rsa -in privkey.pem -out domain.key
rm privkey.pem
openssl req -x509 -in domain.req -text -key domain.key -out domain.crt
NameVirtualHost 192.168.0.1:80
NameVirtualHost 192.168.0.1:443
<VirtualHost 192.168.0.1:443>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/domain.crt
</VirtualHost>