8000 GitHub - jamespreed/wincerts: A Python interface to cryptographic data in the Windows Certificate Store.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jamespreed/wincerts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wincerts

A Python interface to cryptographic data in the Windows Certificate Store.

Quick start

Not yet packaged.

Usage

Here is how you can create an SSL/TLS context using a certificate (with private key) contained in the Windows Certificate Store.

import wincerts

my_store = wincerts.CertStore('My')
for pkcs12 in my_store.iter_pkcs12():
    if not pkcs12.cert_expired and pkcs12.has_private_key and 'digitalSignature' in pkcs12.cert_keyusages:
        print('Valid certificate found')
        break

ssl_ctx = pkcs12.create_ssl_context()

Reference Documentation

The references to the source docs for getting this together.

About

A Python interface to cryptographic data in the Windows Certificate Store.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0