Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Could not load certificate error (SSL)
#1
Hello,

One of our customers has "Could not load certificate. error:00000000:lib(0):func(0):reason(0)" errors. 
They said that Web Server intermittently reports an exception stating that the certificates cannot be loaded (after stopping and restarting the Web Server on some occasions no exceptions are raised). 

IntraWeb version: 14.1.2

Please see attached exception file
.txt   WebServer_Logs.txt (Size: 117.63 KB / Downloads: 2)

I can not reproduce it on my PC. Has anybody ever encountered such a error?
Reply
#2
(07-04-2018, 04:23 PM)Roman Bay Wrote: Hello,

One of our customers has "Could not load certificate. error:00000000:lib(0):func(0):reason(0)" errors. 
They said that Web Server intermittently reports an exception stating that the certificates cannot be loaded (after stopping and restarting the Web Server on some occasions no exceptions are raised). 

IntraWeb version: 14.1.2

Please see attached exception file

I can not reproduce it on my PC. Has anybody ever encountered such a error?

I could reproduce it on my PC with customer ".pem" files.
I have noticed that cert.pem file contain 3 sections: 
-----BEGIN CERTIFICATE-----
-----------------------------
-----END CERTIFICATE-----
But If I remove two of them and leave only one then this error is not displayed. So I think that issue related to correct converting ".pfx" file to customcert.pem file and customroot.pem as well.
Reply
#3
(07-10-2018, 01:25 PM)Roman Bay Wrote:
(07-04-2018, 04:23 PM)Roman Bay Wrote: Hello,

One of our customers has "Could not load certificate. error:00000000:lib(0):func(0):reason(0)" errors. 
They said that Web Server intermittently reports an exception stating that the certificates cannot be loaded (after stopping and restarting the Web Server on some occasions no exceptions are raised). 

IntraWeb version: 14.1.2

Please see attached exception file

I can not reproduce it on my PC. Has anybody ever encountered such a error?

I could reproduce it on my PC with customer ".pem" files.
I have noticed that cert.pem file contain 3 sections: 
-----BEGIN CERTIFICATE-----
-----------------------------
-----END CERTIFICATE-----
But If I remove two of them and leave only one then this error is not displayed. So I think that issue related to correct converting ".pfx" file to customcert.pem file and customroot.pem as well.
I'm not sure I understand this... 

Which 3 sections are you referring to? 

For instance, this is a real, working, self signed certificate:

-----BEGIN CERTIFICATE-----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3Fc266A6C6SVLeOMeK93LisnbauJ0CTZu
6NLpc5iknAMd+JfeygkZB8auLw1/dw==
-----END CERTIFICATE-----

The file should just contain this. What else does your file contain?
Reply
#4
(07-10-2018, 09:43 PM)Alexandre Machado Wrote:
(07-10-2018, 01:25 PM)Roman Bay Wrote:
(07-04-2018, 04:23 PM)Roman Bay Wrote: Hello,

One of our customers has "Could not load certificate. error:00000000:lib(0):func(0):reason(0)" errors. 
They said that Web Server intermittently reports an exception stating that the certificates cannot be loaded (after stopping and restarting the Web Server on some occasions no exceptions are raised). 

IntraWeb version: 14.1.2

Please see attached exception file

I can not reproduce it on my PC. Has anybody ever encountered such a error?

I could reproduce it on my PC with customer ".pem" files.
I have noticed that cert.pem file contain 3 sections: 
-----BEGIN CERTIFICATE-----
-----------------------------
-----END CERTIFICATE-----
But If I remove two of them and leave only one then this error is not displayed. So I think that issue related to correct converting ".pfx" file to customcert.pem file and customroot.pem as well.
I'm not sure I understand this... 

Which 3 sections are you referring to? 

For instance, this is a real, working, self signed certificate:

-----BEGIN CERTIFICATE-----
MIIDQjCCAiqgAwIBAgIBATANBgkqhkiG9w0BAQsFADAUMRIwEAYDVQQDEwkxMjcu
............................................................................................................................
-----END CERTIFICATE-----

The file should just contain this. What else does your file contain?

Customers file was similar to this (3 parts BEGIN END):

-----BEGIN CERTIFICATE-----
MIIDQjCCAiqgAwIBAgIBATANBgkqhkiG9w0BAQsFADAUMRIwEAYDVQQDEwkxMjcu
........................................................................................................................
6NLpc5iknAMd+JfeygkZB8auLw1/dw==
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
MIIDQjCCAiqgAwIBAgIBATANBgkqhkiG9w0BAQsFADAUMRIwEAYDVQQDEwkxMjcu
........................................................................................................................
6NLpc5iknAMd+JfeygkZB8auLw1/dw==
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
MIIDQjCCAiqgAwIBAgIBATANBgkqhkiG9w0BAQsFADAUMRIwEAYDVQQDEwkxMjcu
........................................................................................................................
6NLpc5iknAMd+JfeygkZB8auLw1/dw==
-----END CERTIFICATE-----
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)