Esempio n. 1
0
 /**
  * Extract a private key that is a PKCS8 pem string (base64 encoded PKCS8)
  *
  * @param pem
  * @return
  * @throws Exception
  */
 public static PrivateKey decodePrivateKey(String pem) throws Exception {
   byte[] der = pemToDer(pem);
   return DerUtils.decodePrivateKey(der);
 }