Bot-CQBOT/python-apiproject/请求证书.txt
2024-07-06 09:47:19 +08:00

32 lines
1.4 KiB
Plaintext

mkdir -p /root/.certs/
echo -n | openssl s_client -connect smtp.ym.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
# set from=xrilang@mllt.cc #之前设置好的邮箱地址
# set smtp=smtps://smtp.ym.163.com:465 #邮件服务器
# set smtp-auth-user=xrilang@mllt.cc #之前设置好的邮箱地址
# set smtp-auth-password=qq2686485465 #授权码
# set smtp-auth=login #默认login
# set ssl-verify=ignore #ssl认证方式
# set nss-config-dir=/root/.certs #证书所在目录
# set from=xrilang@mllt.cc #之前设置好的邮箱地址
# set smtp=smtps://smtp.ym.163.com:465 #邮件服务器
# set smtp-auth-user=xrilang@mllt.cc #之前设置好的邮箱地址
# set smtp-auth-password=qq2686485465 #授权码
# set smtp-auth=login #默认login
# set ssl-verify=ignore #ssl认证方式
# set nss-config-dir=/root/.certs #证书所在目录
------------------------------------------------------------------------------
systemctl disable postfix
systemctl stop postfix
systemctl disable sendmail
systemctl stop sendmail