title: How to solve CERT_UNTRUSTED error in nodemailer
body: <p>I am trying to send an email with nodemailer. I already managed to send it from another host but now I want to send emails from another address. These are the versions of nodemailer I am using (from my <code>package.json</code>):</p>
  
  <pre><code>"nodemailer": "1.3.4",
  "nodemailer-smtp-transport": "1.0.2",
  </code></pre>
  
  <p>This is the information I have about my webmail:</p>
  
  <p><img src="https://i.stack.imgur.com/WiFx1.png" alt="RoundCube Mail Client Configuration"></p>
  
  <p>I set up nodemailer like this:</p>
  
  <pre><code>    var transport = nodemailer.createTransport(smtpTransport({
          host: 'securemail.linevast.de',
          port: 465,
          secure: true,
          auth: {
              user: 'website@dynamic-objects.de', // this is my login name
              pass: 'mypassword'
          },
          maxConnections: 5,
          maxMessages: 10
      }));
  </code></pre>
  
  <p>And when I try to send an email I get the following error message.</p>
  
  <p><code>[Error: certificate not trusted] code: 'CERT_UNTRUSTED'</code></p>
  
  <p>The <a href="https://webmail.linevast.de/" rel="noreferrer" title="website">website</a> is verified by <strong>GeoTrust Inc</strong> so I believe it is quite trustworthy. Is there a way to make nodemailer trust the certificate or force it to send the email even though it does not trust it?</p>
  
  <p>Thank you for your help!</p>