The Crystal Programming Language Forum

TLS with pre-shared keys

Hello everyone.

I’m relatively new to Crystal, and I wanted to use TLS with pre-shared keys.
My point is to communicate securely between two of my computers without having to manage certificates and asymmetric cryptography for authentication where they are irrelevant.

The documentation about OpenSSL bindings is insufficient on this matter.
I tried to check in the bindings files for more information but no luck.
I’m not even sure this is supported yet, since the documentation mentions a private key as required, for example.

Also, documentation of the ciphers configuration is lacking, too. In my case, I would like the AEAD_AES_128_CCM cipher suite, with a pre-shared key for both authentication and key exchange.



I am interested if you find an answer to this. This seems like a good thing to have that are not browser based.