public MySunPKCS_CR(byte[] derEncoded) { try { checkVersion(derEncoded); pkcs10 = new PKCS10(derEncoded); } catch (RuntimeException re) { throw re; } catch (Exception e) { e.printStackTrace(); throw new InvalidCertRequestException("Error creating cert request from byte array", e); } }