diff --git a/salt/ssl/init.sls b/salt/ssl/init.sls index 759819b9d..2b717e588 100644 --- a/salt/ssl/init.sls +++ b/salt/ssl/init.sls @@ -21,4 +21,18 @@ bits: 4096 backup: True -# Create Symlinks to the keys so I can distribute it to all the things \ No newline at end of file +# Create Symlinks to the keys so I can distribute it to all the things + +# Create a cert for the docker registry +/etc/pki/registry.crt: + x509.certificate_managed: + - ca_server: {{ master }} + - signing_policy: filebeat + - public_key: /etc/pki/registry.key + - CN: ca.example.com + - days_remaining: 3000 + - backup: True + - managed_private_key: + name: /etc/pki/registry.key + bits: 4096 + backup: True \ No newline at end of file