<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Karl,<br>
        <br>
        see the "opensipsctl tls  xx" commands to create root and user
        CAs. Also take a look at:<br>
            <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/tutorials/tls-1.4.x.html">http://www.opensips.org/html/docs/tutorials/tls-1.4.x.html</a><br>
        <br>
        Regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 13.01.2015 20:25, Karl Karpfen wrote:<br>
    </div>
    <blockquote
cite="mid:CAL8NYFhC4d2DePuDLz9xicth-dMWki93xEvfqek1Rj9mOk+Lgw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">Hi,<br>
          <br>
        </div>
        <div class="gmail_extra">I have some troubles getting TLS
          working with OpenSIPS. First it failed starting with an error
          message<br>
          <br>
          unable to load certificate file
          '/usr/local//etc/opensips/tls/cert.pem'<br>
          <br>
        </div>
        <div class="gmail_extra">So I created this file with<br>
          <br>
          openssl req -x509 -newkey rsa:2048 -keyout key.pem -out
          cert.pem -days 300<br>
          <br>
        </div>
        <div class="gmail_extra">Now the error message is<br>
          <br>
          Retry (0 left) (check password case)<br>
          Jan 13 19:22:39 [31163] ERROR:core:load_private_key: unable to
          load private key file '/usr/local//etc/opensips/tls/cert.pem'<br>
          Jan 13 19:22:39 [31163] CRITICAL:core:main: could not
          initialize tls, exiting...<br>
          <br>
        </div>
        <div class="gmail_extra">So my question: how can I point
          OpenSIPS to correct private key file key.pem and where can I
          specify its password?<br>
          <br>
        </div>
        <div class="gmail_extra">Thanks for all the kind support :-)<br>
          <br>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>