buddy-core icon indicating copy to clipboard operation
buddy-core copied to clipboard

certificates/not-before date is not correct.

Open kzvankovich opened this issue 5 years ago • 1 comments

certificates/not-before returns incorrect value.

actual result: not-before = not after date.

expected result: not-before = not before date.

See the issue in source code (certificates.clj):

(defn not-before "Returns the first date this certificate is valid." [cert] (.getNotAfter cert))

kzvankovich avatar Apr 28 '19 07:04 kzvankovich

Here is the code in question:

https://github.com/funcool/buddy-core/blob/78f09bcd2cca7363ce2596651fa58c861c767f8f/src/buddy/core/certificates.clj#L32-L35

danielcompton avatar Apr 28 '19 08:04 danielcompton