Jump to content

Exception loading root certificate in c++builder win64


cenzin2

Recommended Posts

Dear Friends,

I have been developing with unigui in C++builder Alexandria 11.1 in 64 bit mode using standalone server and when enable SSL it is giving me this exception

Exception class EIdOSSLLoadingRootCertError with message

First chance exception at $00007FFAC43D4F69. Exception class EIdOSSLLoadingRootCertError with message
'Could not load root certificate.
error:00000000:lib(0):func(0):reason(0)'.
Process xxxxxx.exe (6852)

It won't happen if i compile in 32 bits. I am a registered UNIGUI user and the version that i am using is the 1.90.0.1560.

it is happening in both debug and release configuratons. For testing i am using the self signed certificate following UNIGUI documentaton instructions. Also i am using the SSL dll that comes with the 1560 version.

SSL config on ServerModule is

  SSL.Enabled = True
  SSL.SSLOptions.RootCertFile = 'root.pem'
  SSL.SSLOptions.CertFile = 'fl.cert.pem'
  SSL.SSLOptions.KeyFile = 'fl.key.pem'
  SSL.SSLOptions.Method = sslvTLSv1_2
  SSL.SSLOptions.SSLVersions = [sslvTLSv1_2]
  SSL.SSLOptions.Mode = sslmUnassigned
  SSL.SSLOptions.VerifyMode = []
  SSL.SSLOptions.VerifyDepth = 0
  SSL.SSLPassword = 'fmsoft'
  SSL.SSLPort = 8080

I also tried

 SSL.Enabled = True
  SSL.SSLOptions.RootCertFile = 'root.pem'
  SSL.SSLOptions.CertFile = 'fl.cert.pem'
  SSL.SSLOptions.KeyFile = 'fl.key.pem'
  SSL.SSLOptions.Method = sslvSSLv3
  SSL.SSLOptions.SSLVersions = [sslvSSLv3]
  SSL.SSLOptions.Mode = sslmUnassigned
  SSL.SSLOptions.VerifyMode = []
  SSL.SSLOptions.VerifyDepth = 0
  SSL.SSLPassword = 'fmsoft'
  SSL.SSLPort = 8080

The result is identical

So i hope that someone can give me some light on this.

Thanks in advance

 

 

Link to comment
Share on other sites

On 4/9/2022 at 1:07 AM, Farshad Mohajeri said:

Please note that 64-bit DLLs are in a different folder.

Oh yes , i'm aware of that. If i compile the code in 32 bits then it works with both a self signed and a godaddy's certificate. But in 64 bits it doesn't work. it is giving the error i start this thread with. So any suggestions will be appreciated!

Thanks in advance

Link to comment
Share on other sites

  • 2 months later...
  • Administrators
7 minutes ago, andyhill said:

Farshad, What worked before (unim-1.90.0.1557) with GoDaddy SSL Cert no longer works now ?

64bit compiled, 64bit dlls - claims wrong password when there was no password used ?

Please advise - thanks - Andy

Hi,

You private key (Key.pem file) most probably needs a password.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...