buddy.core.certificates
certificate
(certificate x)
Reads a certificate from a PEM encoded file or stream
certificate?
(certificate? x)
Returns true if object is a certificate
not-after
(not-after cert)
Returns the last date this signature is valid.
not-before
(not-before cert)
Returns the first date this certificate is valid.
str->certificate
(str->certificate certdata)
Certificate constructor from string
subject
(subject cert)
Returns the subject of the certificate
valid-on-date?
(valid-on-date? certificate date)
(valid-on-date? certificate)
Returns true if certificate is valid date. Defaults to today
verify-signature
(verify-signature cert public-key)
Verifies that the certificate is signed with the provided public key.