@ Nullable public static X509Certificate convertByteArrayToCertficate ( @ Nullable final byte [ ] aCertBytes ) throws CertificateException { if ( ArrayHelper . isEmpty ( aCertBytes ) ) return null ; // Certificate is always ISO-8859-1 encoded return convertStringToCertficate ( new String ( aCertBytes , CERT_CHARSET ) ) ; }
Convert the passed byte array to an X . 509 certificate object .