Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

How to resolve SSL certificate error while executing tests #489

Open
dileeprt opened this issue Aug 31, 2020 · 3 comments
Open

How to resolve SSL certificate error while executing tests #489

dileeprt opened this issue Aug 31, 2020 · 3 comments
Assignees

Comments

@dileeprt
Copy link

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

@okeefm
Copy link

okeefm commented Aug 31, 2020

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 okeefm self-assigned this Aug 31, 2020
@okeefm
Copy link

okeefm commented Aug 31, 2020

@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.

@dileeprt
Copy link
Author

dileeprt commented Sep 1, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants