mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
{% set master = salt['grains.get']('master') %}
|
|
/etc/salt/minion.d/signing_policies.conf:
|
|
file.managed:
|
|
- source: salt://ca/files/signing_policies.conf
|
|
|
|
/etc/pki:
|
|
file.directory: []
|
|
|
|
/etc/pki/issued_certs:
|
|
file.directory: []
|
|
|
|
pki_private_key:
|
|
x509.private_key_managed:
|
|
- name: /etc/pki/ca.key
|
|
- bits: 4096
|
|
- passphrase:
|
|
- cipher: aes_256_cbc
|
|
- backup: True
|
|
|
|
/etc/pki/ca.crt:
|
|
x509.certificate_managed:
|
|
- signing_private_key: /etc/pki/ca.key
|
|
- CN: {{ master }}
|
|
- C: US
|
|
- ST: Utah
|
|
- L: Salt Lake City
|
|
- basicConstraints: "critical CA:true"
|
|
- keyUsage: "critical cRLSign, keyCertSign"
|
|
- extendedkeyUsage: "serverAuth, clientAuth"
|
|
- subjectKeyIdentifier: hash
|
|
- authorityKeyIdentifier: keyid,issuer:always
|
|
- days_valid: 3650
|
|
- days_remaining: 0
|
|
- backup: True
|
|
- managed_private_key:
|
|
name: /etc/pki/ca.key
|
|
bits: 4096
|
|
backup: True
|
|
- require:
|
|
- file: /etc/pki
|
|
|
|
mine.send:
|
|
module.run:
|
|
- func: x509.get_pem_entries
|
|
- kwargs:
|
|
glob_path: /etc/pki/ca.crt
|
|
- onchanges:
|
|
- x509: /etc/pki/ca.crt
|