Skip to content

Instantly share code, notes, and snippets.

@abn
Created April 1, 2018 15:03
Show Gist options
  • Save abn/cbf622730a8d0599a7eb23dd5cad738e to your computer and use it in GitHub Desktop.
Save abn/cbf622730a8d0599a7eb23dd5cad738e to your computer and use it in GitHub Desktop.
Install letsencrypt cross signed certs for Red Hat distros
---
# https://letsencrypt.org/certificates/
- hosts: all
tasks:
- name: install letsencrypt cross-signed x3
get_url:
url: https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem.txt
dest: /etc/pki/ca-trust/source/anchors/lets-encrypt-x3-cross-signed.pem
register: x3
- name: install letsencrypt cross-signed x4
get_url:
url: https://letsencrypt.org/certs/lets-encrypt-x4-cross-signed.pem.txt
dest: /etc/pki/ca-trust/source/anchors/lets-encrypt-x4-cross-signed.pem
register: x4
- name:
command: update-ca-trust --extract
when: x3.changed or x4.changed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment