title: Initializing NSS with certpath: sql:/etc/pki/nssdb error
body: <p>I use <code>Centos 7</code> and curl version is <code>curl 7.29.0</code> and i want <code>send email</code> with this structure:</p>
  <p><code>curl --url &quot;smtps://mail.domain.com:587&quot; --ssl-reqd --mail-from &quot;username@domain.com&quot; --mail-rcpt &quot;account@gmail.com&quot; --upload-file /root/mail.txt --user &quot;user@domain.com:password&quot; -vvv</code></p>
  <pre><code>curl --url &quot;smtps://mail.domain.com:587&quot; --ssl-reqd --mail-from &quot;username@domain.com&quot; --mail-rcpt &quot;account@gmail.com&quot; --upload-file /root/mail.txt --user &quot;user@domain.com:password&quot; -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
  </code></pre>
  <p>But at this stage you get stuck. I searched a lot but did not find any. The nss package is also an update.</p>
  <pre><code>[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
  </code></pre>
  <pre><code>[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 -&gt; /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
  [root@cache2 ~]# 
  </code></pre>
  <p>How can I solve this problem?</p>