Skip to content

CSCfi/ansible-role-certbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Role Name

This role installs certbot on RedHat machines (can be extended other distros as well). This role is created taken sectigo on account with current limitations with agreement and apis.

Role Variables

When using vault, use 'vault_sectigo_' prefix with variables otherwise just 'sectigo_' prefix is used with variables (except with variable sectigo_domains which is not vaulted variable).

vault_sectigo_account: Account directory under /etc/letsencrypt/accounts/acme.sectigo.com/v2/OV/

vault_sectigo_meta:
  creation_dt: 
  creation_host: 

vault_sectigo_regr:
  body: {}
  uri: API uri

vault_sectigo_private_key:
  e: AQAB
  d:
  n:
  q:
  p:
  kty: RSA
  qi:
  dp:
  dq:

sectigo_domains: Which domain(s) to request if needed.
sectigo_san_domains: If SAN domains is needed on certificate.

Example Playbook

- hosts: servers
  roles:
     - { role: CSCfi.certbot, sectigo_cron: '30 6 * * * certbot renew --post-hook "systemctl reload httpd"'}

Example Playbook with additional parameters - example RSA type instead of ecdsa.

- hosts: servers
  roles:
     - { role: CSCfi.certbot, sectigo_cron: '30 6 * * * certbot renew --post-hook "systemctl reload httpd"', sectigo_additional_parameters: " --key-type rsa --rsa-key-size 4096"}

Example Playbook when requesting certificate with SAN

- hosts: servers
  roles:
     - { role: CSCfi.certbot, sectigo_cron: '30 6 * * * certbot renew --post-hook "systemctl reload httpd"', sectigo_san_domains: " --domain server1.domain.example --domain server2.domain.example"}

License

MIT

Author Information

CSC.fi

About

Certbot / Cert installation role for sectigo certs

Resources

Stars

Watchers

Forks

Packages

No packages published