vt-middleware / cryptacular

The friendly complement to the BouncyCastle crypto API for Java.
Other
39 stars 7 forks source link

Add CSR utilities class CsrUtil. #66

Closed serac closed 6 months ago

serac commented 7 months ago

Provides useful capabilities for reading CSRs in various formats:

  1. Get common name(s)
  2. Get subject alternative names
  3. Get signature algorithm name
  4. Get key length
  5. Generate CSR given keypair and names

Can also encode a BC PKCS10CertificationRequest type into PEM, which is the most common encoding in our experience.

Resolves #65

dfish3r commented 6 months ago

Looks good. Recommend adding @throws javadocs to your util class methods to describe all the conditions where you explicitly throw.