Hi all!
I am trying to configure Orthanc (1.9.3) to use DICOM TLS as it is described in the relevant section of the documentation:
As a first step I am trying to implement the "Secure TLS connections without certificate" configuration which looks simpler.
I have created a self-signed certificate for orthanc:
- openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout orthanc_local.key -out orthanc_local.crt -subj "/C=GR/CN=localhost"
And in my ortahnc.json configuration file, I have the following settings:
...
"DicomTlsEnabled" : true,
"DicomTlsCertificate" : "C:\Program Files (x86)\Orthanc Server\Configuration\orthanc_local.crt",
"DicomTlsPrivateKey" : "C:\Program Files (x86)\Orthanc Server\Configuration\orthanc_local.key",
**/
"DicomTlsTrustedCertificates" : "C:\Program Files (x86)\Orthanc Server\Configuration\orthanc_local.crt",
"DicomTlsRemoteCertificateRequired" : false,
...
However, when I try to start the orthanc service, I am getting the following error:
E0623 14:14:03.643885 OrthancException.cpp:57] Parameter out of range: DICOM TLS is enabled in Orthanc SCP, but no certificate was provided
E0623 14:14:03.646910 ServerContext.cpp:431] INTERNAL ERROR: ServerContext::Stop() should be invoked manually to avoid mess in the destruction order!
I0623 14:14:03.753258 JobsEngine.cpp:288] (jobs) Stopping the jobs engine
W0623 14:14:03.851704 JobsEngine.cpp:312] The jobs engine has stopped
I0623 14:14:04.055110 ServerIndex.cpp:319] Stopping the database flushing thread
I0623 14:14:04.055110 ServerIndex.cpp:502] Closing the monitor thread for stable resources
E0623 14:14:04.071853 main.cpp:1999] Uncaught exception, stopping now: [Parameter out of range] (code 3)
W0623 14:14:04.076195 main.cpp:2030] Orthanc has stopped
I am attaching the entire orthanc.json config file for your reference.