ADCH++ 2.x: How to setup in ADCS mode

Created by Toast
Keywords:

To create secure connections, set TLS="1" and define the following (preferably absolute)

paths: Certificate, PrivateKey, TrustedPath, DHParams. An example secure server setting:

insert this to adchpp.xml

<Server Port="2780" TLS="1" Certificate="certs/cacert.pem" PrivateKey="certs/privkey.pem" TrustedPath="certs/trusted/" DHParams="certs/dhparam.pem"/>

Simple OpenSSL commands to generate files used for secure connections:

  openssl genrsa -out privkey.pem 2048
  openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095
  openssl dhparam -outform PEM -out dhparam.pem 1024

Alternatively, you can use the cert generator contributed on:

http://launchpadlibrarian.net/31960965/Cert_Generator.7z

to get openssl for your system

Windows:
http://www.slproweb.com/products/Win32OpenSSL.html

Linux Debian/Ubuntu:
sudo apt-get openssl