Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Command line utility to generate a csr for letsencrypt from a preexisting key

Project Description

# Letsencrypt GenCSR #

A very fin wrapper around letsencrypt which allows the construction of a CSR which is compatible with the letsencrypt toolchain.

Use this, if you don’t want to generate new private keys every time when requesting letsencrypt certificates. Even though this is generally a good security practice it might be problematic when using public key pinning.

## Installation ##

` pip install letsencrypt_gencsr `

## Usage ##

` letsencrypt-gencsr-helper gencsr --key privkey.pem -d -o request.csr `

This generates form the given key “privkey.pem” and the domains “”, “” and “” a CSR file (in request.csr) compatible with letsencrypt which can be passed to the toolchain through the –csr flag:

` letsencrypt certonly --csr request.csr --webroot --renew-by-default --agree-tos -w /var/www `

## Letsencrypt proxy ##

As of Version 0.2.0 the letsencrypt-gencsr-helper acts as a proxy of the letsencrypt cli interface and has the same commands.

This is done to support the additional –private-key parameter. It allows to feed a pre defined private key to the certonly certificate request:

` letsencrypt-gencsr-helper certonly --private-key privatekey.pem --webroot -w /var/www -d `

Of course the same functionality also works with the run command.

## License ##

The application is licensed under the [MIT license]( The used letsencrypt library is licensed under the [Apache 2.0 license](

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
letsencrypt_gencsr-0.2.0.tar.gz (11.4 kB) Copy SHA256 Checksum SHA256 Source Dec 5, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting