Install the INFN CA certs using a local file. The INFN site sometimes do not respond.

This commit is contained in:
Andrea Dell'Amico 2018-03-30 11:41:02 +02:00
parent 7b6c426fc9
commit fe3a6a3077
4 changed files with 57 additions and 2 deletions

View File

@ -109,8 +109,9 @@ manage_root_ssh_keys: True
install_additional_ca_certs: False install_additional_ca_certs: False
additional_ca_dest_dir: /usr/local/share/ca-certificates additional_ca_dest_dir: /usr/local/share/ca-certificates
# IMPORTANT: the destination file extension must be .crt # IMPORTANT: the destination file extension must be .crt
# Put the source inside the files directory of this role.
#x509_additional_ca_certs: #x509_additional_ca_certs:
# - { url: "https://security.fi.infn.it/CA/mgt/INFNCA.pem", dest_file: '{{ additional_ca_dest_dir }}/infn-ca.crt' } # - { file: "local-ca.crt", dest_file: '{{ additional_ca_dest_dir }}/infn-ca.crt' }
# #
default_security_limits: default_security_limits:

View File

@ -0,0 +1,33 @@
-----BEGIN CERTIFICATE-----
MIIFwjCCA6qgAwIBAgIJALMmAsZ9SSYnMA0GCSqGSIb3DQEBCwUAMEMxCzAJBgNV
BAYTAklUMQ0wCwYDVQQKEwRJTkZOMSUwIwYDVQQDExxJTkZOIENlcnRpZmljYXRp
b24gQXV0aG9yaXR5MB4XDTE1MTAwNjEwMjIwNVoXDTMwMTAwNjEwMjIwNVowQzEL
MAkGA1UEBhMCSVQxDTALBgNVBAoTBElORk4xJTAjBgNVBAMTHElORk4gQ2VydGlm
aWNhdGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoIC
AQDiXdR7kfK7dqc5tQCDZ3YKD89FizGFho2pBxzddUmjVEbEBeOmG//zK4FmBku8
3STid3YmYOcMMf8C0nAVGktdjw2hqYVjP+pw7mnmWFog/mNMkw/Q7/avLeoiY8I+
pJtWKPCbhTZInK59k/KcLs7brauV4+fBBp2vscOpM8j4Y6TH7MAJLsrYddzgxCoE
IvjZ5cRXcPHDN7n2WhojN70XtlQfhYNjUlSGIoqdVXOEKVBEG74Olg888AGeo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TRYvOzd3LILvvyeRpvN04nnxPVIDBWBgNV
HSMETzBNgBTRYvOzd3LILvvyeRpvN04nnxPVIKEypDAwLjELMAkGA1UEBhMCSVQx
DTALBgNVBAoTBElORk4xEDAOBgNVBAMTB0lORk4gQ0GCAQAwDQYJKoZIhvcNAQEF
BQADggEBAHjX0z+3P3JyQGIBI5aAXOS3NuDEf0MdqCLFIGsXjtvIm2kDSMSGQOg5
uZnJLTAhaT+gX5eNkDdzhuuJEgW1FPGDy2If6zgD4T4EsS50E+L5BTNOG78UzF4H
9DGBlbrkD8VEug9RpxGusSweGGlnO6CT/U1Tb3XY5ZjIrMubh09UwmjK9nEIe3vC
RPInAkbmamteezpKOqC5Knj0ZpqU+CnWkuyYnjslX1e9O5lbupLTp5NOqZRCFn1i
iTjpoNefgqLE3sHedgb2P1vS8lO+EIhRnWgfN9qAHSqkQ+ZObxIfPJFdcluu8d/K
tXsFkKmmFuEHd0SrYpBh9ZCLDgq2x9Y=
-----END CERTIFICATE-----

View File

@ -1,6 +1,6 @@
--- ---
- name: Install the additional CA certificates - name: Install the additional CA certificates
get_url: url={{ item.url }} dest={{ item.dest_file }} file: src={{ item.url }} dest={{ item.dest_file }}
with_items: '{{ x509_additional_ca_certs }}' with_items: '{{ x509_additional_ca_certs }}'
when: install_additional_ca_certs when: install_additional_ca_certs
notify: Update the CA bundle list notify: Update the CA bundle list