decodeFromByteArray

Tries to decode src into an X509Certificate, by parsing the bytes directly as ASN.1 structure, or by decoding from Base64, or by decoding to a String, stripping PEM headers (-----BEGIN CERTIFICATE-----) and then decoding from Base64.