Encrypted connections require a certificate + private key.
This little guide shows how to create & inspect those files.
Encryption tool OpenSSL is all we need.
Run command:
openssl req -x509 -newkey rsa:2048 -days 36500 -subj /C=US/O=local/CN=localhost -nodes -out cert.crt -keyout cert.key
On Windows the subject gets rejected because of implicit path substitution -> escape by prepending
/?=
New files cert.crt (=certificate) and cert.key (=private key) were created in current directory.
Run command:
openssl x509 -noout -text -in cert.crt