Skip to main content

Python package to create/renew certificates using azure DNS and azure KeyVault

Project description

azlet : Azure lets encrypt library

PyPI - License PyPI PyPI - Python Version

  • azlet creates SSL certificates using letsencrypt and stores them in a key vault as certificate.
  • The keyvault then can be used by azure APIM, Functions or Webservices to consume the certificates.
  • You can create new certificates, or rotate existing certificates.
  • to use azlet, you need an azure key vault an an azure DNS.
  • azlet uses azure identity to access the key vault as well as the azure dns server. You can use your identity from azure cli, managed identity or enviromnent variables.
  • azlet creates an account with letsencrypt, making sure all requests come from the same account. The account is stored in the key vault as secret.
  • azlet uses the sewer library to create certificates.

Usage

the identity that uses azlet must have secret get/set permissions as well as certificate get/list/update/create/import permissions on the key vault.

create a new certificate:

python -m azlet create --keyvault-name my-vault --dns-zone dns.zone.com --dns-subscription 11111111-1111-1111-1111-11111111111" --dns-resource-group dns --prefix test

create new certificates for all certificates that are valid less that 14 days:

python -m azlet rotate --keyvault-name my-vault --dns-zone dns.zone.com --dns-subscription 11111111-1111-1111-1111-11111111111" --dns-resource-group dns

see python -m azlet -h fro a full list of commands.

Project details


Download files

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

Source Distribution

azlet-0.8.1.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

azlet-0.8.1-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page