Hi everyone, I’m having trouble “re-starting” orthanc with https by enabling the ‘SslEnabled’ section to true from the orthanc.json file.
In particular, I encounter the problem when I try to restart the orthanc service, since it starts without problems at the first start.
the error that I get is:
E0402 12:47:16.608149 OrthancException.cpp:61] The TCP port of the HTTP server is privileged or already in use: (port = 8042)
W0402 12:47:16.707222 main.cpp:1333] DICOM server has stopped
E0402 12:47:16.707298 ServerContext.cpp:475] INTERNAL ERROR: ServerContext::Stop() should be invoked manually to avoid putting in the destruction order!
I checked that there is nothing active on the port, even restarting the server itself, but I still have the problem.
However, I noticed that if I load the certificate by exporting it from the ‘https://localhost:8042’ link and converting it from .crt to .pem and loading it into the trustore of my application, I can restart orthanc as many times as I want and it will continue to start.
While instead if I download the certificate using the command:
openssl s_client -servername wepacs.local -connect wepacs.local:8042 < /dev/null | sed -ne ‘/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p’ > /etc/orthanc/certs/certificate.pem
(“wepacs.local” is the internal domain name to reach the server IP)
I encounter the problem (I don’t know if it could have anything to do with it).
Some advice? Am I doing the wrong command to download the certificate? thank you in advance.