Skip to content

A simple PEM to PKCS12 conversion utility written in Python

License

Notifications You must be signed in to change notification settings

rcoenmans/pkcsutil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PEM to PKCS12 conversion utility

A simple PEM to PKCS12 (PFX) conversion utility written in Python.

Usage

You can run pkcsutil from the command-line. Just provide the path/filename of the certificate file, private key (both PEM encoded) and the output file. You'll also need to provide the passphrase for the private key which will also be used to password-protect the output file (.pfx).

$ python pkcsutil.py --cert C:\path\to\cert.pem 
                     --key C:\path\to\key.pem 
                     --passphrase PassPhraseOfPrivateKey 
                     --out C:\path\to\cert.pfx

Testing

In order to run the tests you will need a valid private key and certificate file.

pkcsutil
|-- minica-key.pem
|-- minica.pem
|-- pkcsutil_test.py
|-- pkcsutil.py

$ python -m pytest pkcsutil_test.py

About

A simple PEM to PKCS12 conversion utility written in Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages