docs: public Certificate bytesToCertificate(byte[] certBytes) throws CryptoException {
          if (certBytes == null || certBytes.length == 0) {
              throw new CryptoException("bytesToCertificate: input null or zero length");
          }
  
          return getX509Certificate(certBytes);
  //        X509Certificate certificate;
  //        try {
  //            BufferedInputStream pem = new BufferedInputStream(new ByteArrayInputStream(certBytes));
  //            CertificateFactory certFactory = CertificateFactory.getInstance(CERTIFICATE_FORMAT);
  //            certificate = (X509Certificate) certFactory.generateCertificate(pem);
  //        } catch (CertificateException e) {
  //            String emsg = "Unable to converts byte array to certificate. error : " + e.getMessage();
  //            logger.error(emsg);
  //            logger.debug("input bytes array :" + new String(certBytes));
  //            throw new CryptoException(emsg, e);
  //        }
  //
  //        return certificate;
      }