tls
tls copied to clipboard
Cannot load the example identity: "Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()"
When I try to run the echo example, it fails at the Identity::from_pkcs12(der, "mypass") line with this error:
Error: Normal(ErrorStack([Error { code: 50856204, library: "digital envelope routines", function: "inner_evp_generic_fetch", reason: "unsupported", file: "/usr/home/somers/src/freebsd.org/src/crypto/openssl/crypto/evp/evp_fetch.c", line: 373, data: "Global default library context, Algorithm (RC2-40-CBC : 0), Properties ()" }]))
I see this error in both environments that I've tried:
- FreeBSD 15.0-CURRENT amd64, OpenSSL 3.0.12 24 Oct 2023 (Library: OpenSSL 3.0.12 24 Oct 2023)
- Debian 12 amd64, OpenSSL 3.0.11 19 Sep 2023 (Library: OpenSSL 3.0.11 19 Sep 2023)
It does work in an older environment. Does the identity file need to be regenerated for newer versions of openssl?
- FreeBSD 13.3-BETA2 OpenSSL 1.1.1w-freebsd 11 Sep 2023