Skip to content

Conversation

@djboris9
Copy link

Hi

This PR implements listing of windows store certificates by using CertFindCertificateInStore with the CERT_FIND_ANY argument.

A use case is determining which certificates are available for use. This allows to determine the CN and use it further for example by CertByCommonName.

I would be glad for feedback. An alternative solution would be to provide a function that implements all filters from CertFindCertificateInStore; or instead of returning x509.Certificates to just return the iterator/certContext.

Best regards
Boris

Signed-off-by: Boris Djurdjevic <boris@djurdjevic.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant