-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
67 - Additional certificate utility methods (#68)
Adds the following useful methods to CertUtil: 1. encodeCert - produce the PEM-encoding given an X509Certificate object 2. subjectDN - produce a string version of the subject of the given X509Certificate object 3. generateCert - Produce a self-signed X509Certificate object given a key pair and validity period as a Duration and an overloaded method with notBefore and notAfter. Rename canonX500PrincipalFormat.CANONICAL to X500PrincipalFormat.READABLE.
- Loading branch information
1 parent
16a77cd
commit 9b1550b
Showing
4 changed files
with
446 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.