Orthanc HTTPS ssl configuration

Hello,

I was trying to secure the Orthanc http api with ssl using a pem certificate along with a key that is password protected. I properly filled the orthanc config parameters like in the following where certificate.pem is a file containing both the pem certificate chain and the password protected private key.
// Whether or not SSL is enabled
− “SslEnabled” : true,
// Path to the SSL certificate used by the HTTP server. The file
// must be stored in the PEM format, and must contain both the
// certificate and the private key. This option is only meaningful
// if “SslEnabled” is true.
“SslCertificate” : “certificate.pem”,

However I cannot contact Orthanc.
When I try with a non-password protected private key, everything is fine.
I guess that the issue is because of the password protected private key, is there a way to configure orthanc to use this password ?

Thanks in advance

Hi,

No, this is actually not supported by the Civetweb server that we use inside Orthanc. You should use openssl to extract the unencrypted private key and generate a new .pem file with the cert + the unencrypted private key.

HTH,

Alain

1 Like