Upgrade 4.6 to 4.7, SSL Problem with MQTT Integration

To add some context to this, ChirpStack v4.7 migrated from OpenSSL to Rustls. The big advantage is that it is no longer needed to (cross)compile OpenSSL such that ChirpStack can be linked against it.

Unfortunately, Rustls is more restrictive in the certificate formats that it accept than OpenSSL. As far as I understand PKCS#8 is in general the preferred method. For RSA private-keys, there is an easy fix and ChirpStack will automatically do the conversion to PKCS#8:

Unfortunate for EC keys I haven’t found an easy solution yet, see also: sec1: Trait DecodeEcPrivateKey not implemented for EcPrivateKey · Issue #747 · RustCrypto/formats · GitHub

Contributions are welcome :slight_smile: