问题描述
我使用 Centos 7
并且 curl 版本是 curl 7.29.0
并且我想要 send email
具有这种结构:
curl --url "smtps://mail.domain.com:587" --ssl-reqd --mail-from "username@domain.com" --mail-rcpt "account@gmail.com" --upload-file /root/mail.txt --user "user@domain.com:password" -vvv
curl --url "smtps://mail.domain.com:587" --ssl-reqd --mail-from "username@domain.com" --mail-rcpt "account@gmail.com" --upload-file /root/mail.txt --user "user@domain.com:password" -vvv
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to mail.domain.com port 587 (#0)
* Trying 1.2.3.4...
* Connected to mail.domain.com (1.2.3.4) port 587 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
0 0 0 0 0 0 0 0 --:--:-- 0:00:24 --:--:-- 0^C
但是在这个阶段你会卡住。我搜索了很多,但没有找到。 nss 包也是一个更新。
[root@cache2 ~]# rpm -aq | grep nss
nss-softokn-freebl-3.53.1-6.el7_9.x86_64
nss-tools-3.53.1-3.el7_9.x86_64
nss-softokn-3.53.1-6.el7_9.x86_64
nss-pem-1.0.3-7.el7.x86_64
nss-sysinit-3.53.1-3.el7_9.x86_64
nss-util-3.53.1-1.el7_9.x86_64
openssh-server-7.4p1-21.el7.x86_64
nss-3.53.1-3.el7_9.x86_64
[root@cache2 ~]# ll /etc/pki/tls/certs/ca-bundle.crt
lrwxrwxrwx. 1 root root 49 Jun 15 10:20 /etc/pki/tls/certs/ca-bundle.crt -> /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
[root@cache2 ~]#
我该如何解决这个问题?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)