Author Topic: Secure CWP ports  (Read 1195 times)

0 Members and 1 Guest are viewing this topic.

Secure CWP ports
« on: June 25, 2018, 09:37:39 AM »
Hello folks!

I have created subdomain like Also installed SSL Let's Encrypt for Now I wan to select these certificates for CWP ports and services:  443, 465, 587, 993, 995, 2031, 2083, 2087, 2096.

The location of my ssl files for subdomain is:
SSLCertificateFile: /etc/pki/tls/certs/
SSLCertificateKeyFile: /etc/pki/tls/private/

So I replace destinations in /usr/local/cwpsrv/conf/cwpsrv.conf:

ssl_certificate     /etc/pki/tls/certs/hostname.crt;
ssl_certificate_key /etc/pki/tls/private/hostname.key;

ssl_certificate  /etc/pki/tls/certs/;
ssl_certificate_key /etc/pki/tls/private/;

But command "service cwpsrv restart" fails with the following error:
cwpsrv: [emerg] SL_CTX_use_PrivateKey_file("/etc/pki/tls/private/") failed (SSL: error:0B080074:x509 certifi...

Could anybody help me or show me tutorial for this? I have also researched but there's no tutorial like this.

Thank you in advance!

Re: Secure CWP ports
« Reply #1 on: June 25, 2018, 03:01:29 PM »
SOrry! I found that: this workaround is OK and is still working. Thank you!  :)