Topic: Instalation of free StartSSL certificate .... success
==== Required information ====
- iRedMail version: 0.9.1
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: CentOS
- Related log if you're reporting an issue:
====
I finally got it, and succesfully installed free StartSSL certificate for all iredmail services (Apache, dovecot, postfix).
I created and installed apache certificate following this tutorial: https://www.digitalocean.com/community/ … e-on-a-vps
Then in my home dir (/home/piko/Certifikati) there was 6 files: /home/piko/Certifikati
ca-bundle.pem - StartSSL’s bundle
ca.pem - StartSSL's Root certificate
private.key - The unencrypted version of private key
ssl.crt - new certificate !!!
ssl.key - The encrypted version of your private key
sub.class1.server.ca.pem - The intermediate certificate for StartSSL
ssl.crt and sub.class1.server.ca.pem is copied to /etc/ssl/certs/ (/etc/pki/tls/certs/)
private.key is copied to /etc/pki/tls/private/
Apache
nano /etc/httpd/conf.d/ssl.conf
SSLCertificateFile /etc/pki/tls/certs/ssl.crt
SSLCertificateKeyFile /etc/pki/tls/private/private.key
SSLCertificateChainFile /etc/pki/tls/certs/sub.class1.server.ca.pem
-- add bundle to trusted certificates --
cd /etc/pki/tls/certs/
cat /home/piko/Certifikati/ca-bundle.pem >> ca-bundle.crt
Dovecot
cd /etc/pki/dovecot/certs/
cp dovecot.pem dovecot.pem.orig
cat /home/piko/Certifikati/ssl.crt /home/piko/Certifikati/sub.class1.server.ca.pem > dovecot.pem
cd /etc/pki/dovecot/private/
cp dovecot.pem dovecot.pem.orig
cat /home/piko/Certifikati/private.key > dovecot.pem
nano /etc/dovecot/conf.d/10-ssl.conf
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
nano /etc/dovecot/dovecot.conf
ssl_ca =</etc/ssl/certs/ca-bundle.crt
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
Postfix
nano /etc/postfix/main.cf
smtpd_tls_key_file = /etc/pki/tls/private/private.key
smtpd_tls_cert_file = /etc/pki/tls/certs/ssl.crt
smtpd_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
And that is all folks .... trusted cerificate for all services
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.