mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-02-20 06:05:01 +01:00
SSL and CA Modules - Add base
This commit is contained in:
21
salt/ssl/init.sls
Normal file
21
salt/ssl/init.sls
Normal file
@@ -0,0 +1,21 @@
|
||||
# Trust the CA
|
||||
/usr/local/share/ca-certificates:
|
||||
file.directory: []
|
||||
|
||||
/usr/local/share/ca-certificates/intca.crt:
|
||||
x509.pem_managed:
|
||||
- text: {{ salt['mine.get']('ca', 'x509.get_pem_entries')['ca']['/etc/pki/ca.crt']|replace('\n', '') }}
|
||||
|
||||
# Request a cert
|
||||
/etc/pki/filebeat.crt:
|
||||
x509.certificate_managed:
|
||||
- ca_server: ca
|
||||
- signing_policy: filebeat
|
||||
- public_key: /etc/pki/filebeat.key
|
||||
- CN: www.example.com
|
||||
- days_remaining: 3000
|
||||
- backup: True
|
||||
- managed_private_key:
|
||||
name: /etc/pki/filebeat.key
|
||||
bits: 4096
|
||||
backup: True
|
||||
Reference in New Issue
Block a user