我正在 CentOS 7 上设置 Postfix 服务器。Selinux 是明显的罪魁祸首,因此它被禁用。我也有同样的问题。
我的证书存储在/etc/ssl/certs/<domain>
.我的master.cf
指向日志中文件的正确位置。但我仍然收到以下错误:
warning: cannot get RSA certificate from file "/etc/ssl/certs/mail.example.com/fullchain.pem": disabling TLS support
Sep 5 15:53:07 mail postfix/smtpd[1440]: warning: TLS library problem: 1440:error:02001002:system library:fopen:No such file or directory:bss_file.c:402:fopen('"/etc/ssl/certs/mail.example.com/fullchain.pem"','r')
当我ls
对该目录执行操作时,我得到:
[root@mail mail.example.com]# ls -la
total 8
drwxr-xr-x. 2 root root 46 Sep 5 13:54 .
drwxr-xr-x. 3 root root 150 Sep 5 13:54 ..
-rw-r--r--. 1 root root 1769 Sep 5 13:54 fullchain.pem
-rw-------. 1 root root 3272 Sep 5 13:54 privkey.pem
[root@mail mail.example.com]# pwd
/etc/ssl/certs/mail.example.com