For many methods in OpenSSL 3 there is an _ex version to create/load something with a provided OSSL_LIB_CTX*. Why is there no PEM_read_bio_X509_ex that accepts this ctx?
I don't know why, but every AI I tried (Claude, Gemini, ChatGPT, Deepseek), claims there is an PEM_read_bio_X509_ex, that can be used!
Is this not needed? If not, how do I get the public key from the certificate as EVP_PKEY* that has my OSSL_LIB_CTX*. (not the default one)
Like this:
X509 *x = X509_new_ex(libctx, NULL);
PEM_read_bio_X509(bio, &x, NULL, NULL);