Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Automates requests for certificates from AlwaysOnSSL (DigiCert) via CertCenter

License

Notifications You must be signed in to change notification settings

timcappalli/certcenter-cert-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CertCenter Cert Request

This is a basic script that helps to automate most parts of a certificate request from the Encryption Everywhere service (DigiCert) via CertCenter.

This script requires manual DNS record creation. If you're using AWS Route 53, see certcenter-r53-cert-request for a completely automated solution.

What it does:

  1. Checks the domain against CertCenter for eligibility
  2. Requests domain validation challenge (TXT record)
  3. Presents TXT record value and waits for user confirmation
  4. Tests public DNS for TXT record presence
  5. Submits the CSR for signing
  6. Dumps out the signed cert with chain

Configuration

Create a file named 'config' (no extension) with the contents below and fill in the appropriate values.

[CertCenter]
client_id = 
client_secret = 
product_code = AlwaysOnSSL.AlwaysOnSSL
cert_validity_period = 365

Usage

request_cert.py -f/--fqdn <subject-fqdn> -c/--csr <csr-filename> [-v/--validity <days>]

Required Arguments:

  • --fqdn / -f: The FQDN from the CN
  • --c / -c: the filename of the CSR

Optional Arguments:

  • --days / -d: override validity from config file (1-365)
  • --verbose / -v: verbose logging

Examples

request_cert.py --fqdn=host.domain.com --csr=host.csr

request_cert.py -f host.domain.com -c host.csr

Change Log

2019.03 (2019-12-31)

  • Fixed token caching

2019.02 (2019-12-30)

  • Fixed an issue where the root certificate and extra blank lines were included in the chained output due to an undocumented change by DigiCert

2019.01 (2019-10-26)

  • Initial release

License and Other Information

This repo is licensed under the MIT License - see the LICENSE file for details

Author: @timcappalli

About

Automates requests for certificates from AlwaysOnSSL (DigiCert) via CertCenter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages