Tutorial for DCMTK
Understanding DICOM with Orthanc can be a good start point if you never meet DICOM before.
Generate certificates in res directory.
cd res
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout server.key -out server.crt -subj '/CN=localhost'
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout client.key -out client.crt -subj '/CN=localhost'
๐ก Use 1234
as password when openssl requested otherwise mofify or comment tls_helper.hpp:48
tls_layer_->setPrivateKeyPasswd("1234");