免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2500 | 回复: 4
打印 上一主题 下一主题

关于msmtp应用tls的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-11 13:19 |只看该作者 |倒序浏览
/usr/local/etc/msmtprc
    tls on
    tls_starttls on
    tls_trust_file /etc/pki/tls/certs/ca-bundle.crt


/usr/local/bin/msmtp test@aaa.com

msmtp: TLS certificate verification failed: unable to get local issuer certificate
msmtp: could not send mail (account default from /usr/local//etc/msmtprc)

请问
tls_trust_file 指定的文件应该如何生成?

论坛徽章:
0
2 [报告]
发表于 2008-12-11 13:53 |只看该作者
顶上去:em12:

论坛徽章:
0
3 [报告]
发表于 2008-12-11 15:30 |只看该作者
继续顶上去:em11:

论坛徽章:
2
IT运维版块每日发帖之星
日期:2016-04-08 06:20:00IT运维版块每日发帖之星
日期:2016-05-26 06:20:00
4 [报告]
发表于 2016-12-26 16:40 |只看该作者
yum install ca-certificates
就会生成那两个文件,ca-bundle.crt 和 ca-bundle.trust.crt

我现在疑惑的是 tls_key_file 和 tls_cert_file 这两个参数:
manual 手册中描述如下

tls_key_file [file]
              This command (together with the tls_cert_file  command)  enables
              msmtp  to  send  a  client  certificate  to  the  SMTP server if
              requested.  The file must contain the private key of a  certifi‐
              cate in PEM format.  An empty argument disables this feature.

       tls_cert_file [file]
              This  command  (together  with the tls_key_file command) enables
              msmtp to send  a  client  certificate  to  the  SMTP  server  if
              requested.   The  file must contain a certificate in PEM format.
              An empty argument disables this feature.

这里的私钥和公钥指的是什么?
没有它们算是使用了tls了吗?比如像楼主一样只使用了
    tls on
    tls_starttls on
    tls_trust_file /etc/pki/tls/certs/ca-bundle.crt

论坛徽章:
0
5 [报告]
发表于 2017-01-04 15:44 |只看该作者
服务器硬件和配件的解决方案提供者2727453595
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP