p12-pem

Extracts the certificate and the private key from a p12/ pkcs12 file

win-cert

Library for obtaining certificates from the Windows certificate store