inferno-community icon indicating copy to clipboard operation
inferno-community copied to clipboard

How to resolve SSL certificate error while executing tests

Open dileeprt opened this issue 4 years ago • 3 comments

While executing the tests on Inferno (inferno-2.10.0) pointing to our local FHIR server, the tests fail with the error "Fatal Error: SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate)".

But our FHIR server is already configured with a self-signed certificate.

Could you please help resolve this issue.

Thanks in advance. Certificate_error

dileeprt avatar Aug 31 '20 09:08 dileeprt

Hello @dileeprt,

This error message is stating that it cannot connect because your server is using a self-signed certificate. Inferno doesn't allow self-signed certificates by default, due to security limitations. To resolve this error, you will have to install and configure a valid certificate from a trusted Certificate Authority.

Feel free to respond to this issue if you have any additional questions.

okeefm avatar Aug 31 '20 11:08 okeefm

@dileeprt Additionally, if you are running Inferno locally, you can disable SSL verification by editing config.yml in the Inferno root directory, changing the line that reads disable_verify_peer: false to read disable_verify_peer: true, and restarting your Inferno instance. This should only be done for development purposes with a FHIR server that is not exposed to the Internet, as running with an unverified SSL certificate is a security risk.

okeefm avatar Aug 31 '20 12:08 okeefm

Thanks a lot @okeefm. disable_verify_peer: true worked for us.

dileeprt avatar Sep 01 '20 04:09 dileeprt