Skip to content

Commit

Permalink
Improve error message for faulty self-signed certificate creation.
Browse files Browse the repository at this point in the history
Adjusted exception message.
  • Loading branch information
thomasdarimont committed Jul 8, 2015
1 parent d04d2f0 commit 870dfea
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -146,8 +146,8 @@ private static X509Certificate getSelfCertificate(X500Name x500Name, Date issueD
X509CertImpl selfSignedCert = new X509CertImpl(certInfo);
selfSignedCert.sign(keyPair.getPrivate(), signatureAlgorithm);
return selfSignedCert;
} catch (IOException var11) {
throw new CertificateEncodingException("getSelfCert: " + var11.getMessage());
} catch (IOException ioe) {
throw new CertificateEncodingException("Error during creation of self-signed Certificate: " + ioe.getMessage());
}
}

Expand Down

0 comments on commit 870dfea

Please sign in to comment.