This open source project is community-supported. To report a problem or share an idea, use the
Issues tab; and if you have a suggestion for fixing the issue, please include those details, too.
In addition, use the Pull requests tab to contribute actual bug fixes or proposed enhancements.
We welcome and appreciate all contributions.
VCert Python is a Python library and SDK designed to simplify key generation and enrollment of machine identities (also known as SSL/TLS certificates and keys) that comply with enterprise security policy by using the Venafi Platform or Venafi Cloud.
This implementation is based on the original Go library, https://github.com/Venafi/vcert.
VCert supports Python 3, and Python 2.7. VCert releases are tested using the latest version of Trust Protection Platform. The latest VCert release should be compatible with Trust Protection Platform 17.3 or higher based on the subset of API methods it consumes.
Get the library using pip:
pip install vcert
You also can install latest version from github:
pip install https://github.com/Venafi/vcert-python/archive/master.zip
If installation fails collecting dependancies, make sure your python setuptools is up to date. Run the following command to upgrade to the latest version of setuptools.
pip install setuptools -U
For code samples of programmatic use, please review the files in /examples.
- A user account that has been granted WebSDK Access
- A folder (zone) where the user has been granted the following permissions: View, Read, Write, Create, Revoke (for the revoke action), and Private Key Read (for the pickup action when CSR is service generated)
- Policy applied to the folder which specifies:
- CA Template that Trust Protection Platform will use to enroll certificate requests submitted by VCert
- Subject DN values for Organizational Unit (OU), Organization (O), City (L), State (ST) and Country (C)
- Management Type not locked or locked to 'Enrollment'
- Certificate Signing Request (CSR) Generation not locked or locked to 'Service Generated CSR'
- Generate Key/CSR on Application not locked or locked to 'No'
- (Recommended) Disable Automatic Renewal set to 'Yes'
- (Recommended) Key Bit Strength set to 2048 or higher
- (Recommended) Domain Whitelisting policy appropriately assigned
Venafi welcomes contributions from the developer community.
- Fork it to your account (https://github.com/Venafi/vcert-python/fork)
- Clone your fork (
git clone [email protected]:youracct/vcert-python.git
) - Create a feature branch (
git checkout -b your-branch-name
) - Implement and test your changes
- Commit your changes (
git commit -am 'Added some cool functionality'
) - Push to the branch (
git push origin your-branch-name
) - Create a new Pull Request (https://github.com/youracct/vcert-python/pull/new/your-branch-name)
Copyright © Venafi, Inc. All rights reserved.
VCert is licensed under the Apache License, Version 2.0. See LICENSE
for the full license text.
Please direct questions/comments to [email protected].