Share via


How to view/export a list of certificate using "Certutil" command; restrict by Certificate Effective dates

Question

Friday, June 26, 2015 11:55 AM

Hi,

I was trying to use certutil command to view and export certificates issued from Jan 1, 2015 onwards...

the command I used below doesn't seem to work, please advise - thanks!

certutil -view -restrict "NotBefore>=1/1/2015" -out "RequestID,NotBefore,NotAfter,CertificateTemplate" > file.txt

All replies (2)

Monday, June 29, 2015 6:48 AM ✅Answered

Hi R0m3ll,

Please try the sript below:

certutil -view -restrict "notbefore=>1/1/2015" -out "RequestID,NotBefore,NotAfter,CertificateTemplate"

Refer to:

Disposition values for certutil –view –restrict (and some creative samples) 

If there is anything else regarding this issue, please feel free to post back.

Best Regards,

Anna Wang

Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]


Saturday, May 21, 2016 2:05 PM | 1 vote

Sorry, i missed this... thanks.