Package tech.justen.concord.goodwill
Class CertUtils
java.lang.Object
tech.justen.concord.goodwill.CertUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidencodeCertificate(X509Certificate cert, File file) static voidencodeCertificate(X509Certificate cert, Writer writer) static voidencodePrivateKey(PrivateKey key, File file) static voidencodePrivateKey(PrivateKey key, Writer writer) static CertUtils.CAstatic KeyPair
-
Constructor Details
-
CertUtils
public CertUtils()
-
-
Method Details
-
generateKeyPair
public static KeyPair generateKeyPair() throws NoSuchProviderException, NoSuchAlgorithmException, InvalidAlgorithmParameterException -
encodeCertificate
public static void encodeCertificate(X509Certificate cert, File file) throws IOException, CertificateEncodingException -
encodeCertificate
public static void encodeCertificate(X509Certificate cert, Writer writer) throws IOException, CertificateEncodingException -
encodePrivateKey
- Throws:
IOException
-
encodePrivateKey
- Throws:
IOException
-
generateCA
- Throws:
Exception
-