cryptacular icon indicating copy to clipboard operation
cryptacular copied to clipboard

67 - Additional certificate utility methods

Open haripri-vt opened this issue 1 year ago • 2 comments

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.

haripri-vt avatar Mar 25 '24 14:03 haripri-vt

I created a PR to generify the encoding implementation: https://github.com/vt-middleware/cryptacular/pull/74 Admittedly, I don't know how this will affect your downstream API usage, but it felt like a cleaner implementation.

dfish3r avatar Apr 04 '24 15:04 dfish3r

I believe this is good to go now.

serac avatar Apr 05 '24 11:04 serac