X509_V_ERR_INVALID_PURPOSE
openssl Invalid certificate purpose
The certificate is not valid for the intended purpose (e.g. a CA cert used for TLS server auth).
The certificate is not valid for the intended purpose (e.g. a CA cert used for TLS server auth).