SSL
# yum install openssl
# export MY_DOMAIN=sysadm.ru
# mkdir -p ~/ssl/${MY_DOMAIN}
# cd ~/ssl/${MY_DOMAIN}
# openssl genrsa -des3 -out ${MY_DOMAIN}.key 2048
# openssl req -new -key ${MY_DOMAIN}.key -out ${MY_DOMAIN}.csr
# openssl x509 -req -days 365 -in ${MY_DOMAIN}.csr -signkey ${MY_DOMAIN}.key -out ${MY_DOMAIN}.crt
# cp ${MY_DOMAIN}.key{,.orig}
# openssl rsa -in ${MY_DOMAIN}.key.orig -out ${MY_DOMAIN}.key
# chmod 400 ${MY_DOMAIN}.key
# cp ${MY_DOMAIN}.crt /etc/pki/tls/certs
# cp ${MY_DOMAIN}.{key,csr} /etc/pki/tls/private/
Для почты
# vim /etc/httpd/conf.d/90-roundcube.conf
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?webmail/(.*) https://%{SERVER_NAME}/webmail/$1 [R,L]
# service httpd restart