cenzin2 Posted April 8, 2022 Share Posted April 8, 2022 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2022 Share Posted April 8, 2022 Hello, Are you using the relevant libraries? \FMSoft\Framework\uniGUI\SSL\dll Quote Link to comment Share on other sites More sharing options...
cenzin2 Posted April 9, 2022 Author Share Posted April 9, 2022 Hello , yes, as i was mention before i am using the dll's that came with the 1560 version which are on the directory that you specified. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 9, 2022 Administrators Share Posted April 9, 2022 Please note that 64-bit DLLs are in a different folder. Quote Link to comment Share on other sites More sharing options...
cenzin2 Posted April 11, 2022 Author Share Posted April 11, 2022 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 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 12, 2022 Administrators Share Posted April 12, 2022 Checking.. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted April 12, 2022 Administrators Share Posted April 12, 2022 Well, are you sure that 64-bit SSL dlls and your Certificate files are in correct folder? As you know Delphi compiles 64 bit EXE file in a different target folder. Quote Link to comment Share on other sites More sharing options...
andyhill Posted June 22, 2022 Share Posted June 22, 2022 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 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted June 22, 2022 Administrators Share Posted June 22, 2022 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.