1

Topic: Which NameCheap SSL Certs should I use?

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.5.2 MARIADB edition
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx): NGINX
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello,
I'd like to know which of the 3 SSL files I received from NameCheap.com should be used for iRedMail. Thank you

I have been using letsencrypt SSL certs with iRedMail and using these commands whenever I renew the certs.
cp fullchain.pem /etc/ssl/certs/iRedMail.crt
cp privkey.pem /etc/ssl/private/iRedMail.key

This time I purchased SSL certs through NameCheap.com, who states that the files are in PEM format. The 3 files I got were:

__statmail_org.ca-bundle
__statmail_org.crt
__statmail_org.p7b

So should I then use the commands? :

cp __statmail_org.ca-bundle /etc/ssl/certs/iRedMail.crt
cp __statmail_org.crt /etc/ssl/private/iRedMail.key

The problem is that none of these files begins with -----BEGIN PRIVATE KEY----- like in iRedMail.key.

Or is that wrong?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by Neovana 2025-08-19 10:04:50)

Re: Which NameCheap SSL Certs should I use?

From https://comodosslstore.com/ssltools/ssl-converter.php

Convert P7B to PFX
openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer

openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfx -certfile CACert.cer

I hope that this helps. Good luck.