网站建设资讯

NEWS

网站建设资讯

如何在Centos7中安装配置mailx并生成163证书

这篇文章为大家分享在Centos 7中安装配置mailx并生成163证书的方法。文章涵盖mailx的配置和使用方法,希望大家通过这篇文章能有所收获。

创新互联是一家专业提供铁东企业网站建设,专注与成都做网站、成都网站建设、H5高端网站建设、小程序制作等业务。10年已为铁东众多企业、政府机构等服务。创新互联专业的建站公司优惠进行中。

一、安装mailx
yum -y install mailx

二、配制

[root@sea~]# vim /etc/mail.rc
set from=sea_xyz@163.com                           # 发送邮件后显示的邮件发送方
set smtp.163.com                                            # 163 smtp邮件服务器
set smtp-auth-user=youremail@163.com       # 你的163邮箱
set smtp-auth-password=yourpass                 # 你的163邮箱密码(设置页面加密后的授权码)
set smtp-auth=login                                         # 动作、登录
set smtp-use-starttls                                        # 安全连接传输
set ssl-verify=ignore                                        # 忽略ssl验证
set nss-config-dir=/root/.certs                         # 证书路径

三、生成163的证书

mkdir -p /root/.certs/
echo -n | openssl s_client -connect smtp.163.com:465 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ~/.certs/163.crt
certutil -A -n "GeoTrust SSL CA" -t "C,," -d ~/.certs -i ~/.certs/163.crt
certutil -A -n "GeoTrust Global CA" -t "C,," -d ~/.certs -i ~/.certs/163.crt
certutil -L -d /root/.certs

cd /root/.certs/
certutil -A -n "GeoTrust SSL CA - G3" -t "Pu,Pu,Pu" -d ./ -i 163.crt

出现 下面提示说明正常
Notice: Trust flag u is set automatically if the private key is present.

以上就是在Centos 7中安装配置mailx并生成163证书的方法,详细使用情况还需要大家自己亲自动手使用过才能领会。如果想了解更多相关内容,欢迎关注创新互联行业资讯频道!


标题名称:如何在Centos7中安装配置mailx并生成163证书
分享URL:http://cdweb.net/article/peidih.html