add accessors for notBefore and notAfter X509 fields
Added two additional accessor methods to retrieve the X509 fields notBefore and notAfter as POSIXct datetime values. These are needed to examine x509 certificate validity time ranges. Thanks in advance for considering this pull request.
Thanks. I think the proper way to go about this is actually to convert all necessary info from the cert in one function - that will also supersede the get.*name function as well. I need to have a close look at what we can parse out.
Yeah. one thing I considered was transferring the notBefore and notAfter fields to R as string values rather than time_t values, and doing the conversion from string to POSIXct on the R side. Treating them as strings would make it even easier to use a single method to extract all field values from the certificate. Doesn't matter to me which way its done, but it would be good to have access to all of the certificate fields. Even the extension fields would be useful to expose via the client.
These additional commits change the format of PKI.get.subject() to output the subject name in a string format that complies with RFC 2253/RFC 4514, which are the standards in widespread use.
@s-u Any further thoughts on this PKI pull request? I'm prepping another R package for release that depends on these changes, and so it would be really helpful if they could be merged and pushed to cran as a new release. Did you decide if you wanted further changes? If so, I can help implement.
@s-u Any updates? Please let me know if you don't plan to merge this and release to CRAN, as I will need to find an alternate path to release our packages that depend on PKI. Thanks.
@s-u How do you recommend I proceed? We'd like to release our package, but as it depends on yours, we're now stuck. I'm trying to come up with solutions, but none seem great compared to pushing a new release of PKI to CRAN. So, I guess this is my last ditch request for release, then I'll find a way to include the code in our package. Thanks, and again, I'm happy to help with any work that needs to be done to prep the package.