OpenSSL: Error "Self-signed certificate in certificate chain"


Lunar Mushrooms:

When I use the openssl API to verify the server certificate (self-signed), I get the following error:

Error 1 Deep Look 19: Self-signed certificate in certificate chain

According to the openssl documentation , this error (19) is

"X509_V_ERR_SELED_CERT_IN_CHAIN: Self-signed certificate in certificate chain - Untrusted certificate can be used to build certificate chain, but root cannot be found locally."

Why am I getting this error? Is there any problem with my server certificate?

Eitan T:

You have a self-signed certificate, so it's untrusted by default , which is why OpenSSL is complaining. The warning is actually a good thing, as this can also rise due to man-in-the -middle attacks .

To fix this, you need to install it as a trusted server. If it was signed by an untrusted CA, that CA's certificate must also be installed.

Take a look at the link on installing a self-signed certificate .

Related


OpenSSL: Error "Self-signed certificate in certificate chain"

Lunar Mushrooms: When I use the openssl API to verify the server certificate (self-signed), I get the following error: Error 1 Deep Look 19: Self-signed certificate in certificate chain According to the openssl documentation , this error (19) is "X509_V_ERR_SE

OpenSSL: Error "Self-signed certificate in certificate chain"

Lunar Mushrooms: When I use the openssl API to verify the server certificate (self-signed), I get the following error: Error 1 Deep Look 19: Self-signed certificate in certificate chain According to the openssl documentation , this error (19) is "X509_V_ERR_SE

nodejs - wrong self signed certificate in certificate chain

Doyle: I'm having issues with client side https requests. Fragments can look like this: var fs = require('fs'); var https = require('https'); var options = { hostname: 'someHostName.com', port: 443, path: '/path', method: 'GET', key: fs.re

nodejs - wrong self signed certificate in certificate chain

Doyle: I'm having issues with client side https requests. Fragments can look like this: var fs = require('fs'); var https = require('https'); var options = { hostname: 'someHostName.com', port: 443, path: '/path', method: 'GET', key: fs.re

nodejs - wrong self signed certificate in certificate chain

Doyle: I'm having issues with client side https requests. Fragments can look like this: var fs = require('fs'); var https = require('https'); var options = { hostname: 'someHostName.com', port: 443, path: '/path', method: 'GET', key: fs.re