NetTalk Central

Author Topic: SSL Errorcode -66  (Read 3536 times)

trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
SSL Errorcode -66
« on: November 15, 2012, 03:07:46 PM »
Hi Everyone,

I'm receiving an errorcode (-66) when trying to initialize an SSL WebServer on a clients server. Does anyone know what this errorcode means?

Thanks,
Trent
« Last Edit: November 15, 2012, 03:09:35 PM by trent »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11241
    • View Profile
Re: SSL Errorcode -66
« Reply #1 on: November 15, 2012, 10:03:29 PM »
from Netall.Inc;

ERROR:SSLFailedToLoadPrivateKey       equate(-66)

So the question is - have you set up the certificates correctly - in the right place?

cheers
Bruce

trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: SSL Errorcode -66
« Reply #2 on: November 15, 2012, 10:11:57 PM »
Hi Bruce,

The *.crt and *.key files are in the correct place and the certificate is installed on the PC.

The *.crt file was converted from a *.cer, could it be that the file was not converted correctly or in the right format? Or the *.key file was not made correctly?

Is there anything else I am meant to be doing other than putting these files in the correct place? I tested using SSL on this WebServer in my own testing environment (Server 2003, self made certificates, accessing externally) and it worked perfectly. Just not on the client's environment with their own certificates.

Thanks,
Trent

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11241
    • View Profile
Re: SSL Errorcode -66
« Reply #3 on: November 15, 2012, 10:48:48 PM »
Hi Trent,

maybe open the CER and KEY files in notepad to see if they "look the same" (or at least the same layout) between your test one and the client's one.

Also - of course - make sure you shipped the 4 DLL's needed by SSL into the app folder.

cheers
Bruce



trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: SSL Errorcode -66
« Reply #4 on: November 15, 2012, 11:00:31 PM »
I'll give that a go on Monday. Thank you for help Bruce.

trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: SSL Errorcode -66
« Reply #5 on: November 18, 2012, 03:07:14 PM »
Hi Bruce,

The key and crt files did not look the same as mine - the key file was converted to the wrong format and the crt file had headers that needed to be removed.

All working now! Thank you.

Regards,
Trent