6
I have a system where it does digital certificate storage, I need some information in addition to the file itself, one such information is the expiration date of the certificate.
The question is, how to read this file so that I can catch the expiration date of this certificate?
The certificate is type A1, and the file extension is in pfx.
I found a solution in this post.
Friend, one detail I forgot to add to my question, is that the file extension is in 'pfx', so there is some way I can convert this file before reading?
– Meeeefiu
I found a solution that includes a part of what you put in your answer.
– Meeeefiu
@Mathdesigner47, the solution you found needs to transform
.pfx
in.cer
? If not, and found an easier way, please post, I will improve my code. Currently my function runs onshell
conversion of the file into.pub
to be able to read the data.– William Novak