inferno-community
inferno-community copied to clipboard
How to resolve SSL certificate error while executing tests
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.
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.
@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.
Thanks a lot @okeefm. disable_verify_peer: true worked for us.