PKCS8 Fix Attempt #2

This commit is contained in:
Mike Reeves
2018-10-09 11:11:25 -04:00
parent 0be926715d
commit 5866acf63a

View File

@@ -34,10 +34,8 @@ m2cryptopkgs:
# Convert the key to pkcs#8 so logstash will work correctly.
filebeatpkcs:
cmd.run:
- name: /usr/bin/openssl pkcs8 -in /etc/pki/filebeat.key -topk8 -out /etc/pki/filebeat.p8
- onchanges:
- file: /etc/pki/filebeat.key
- name: "/usr/bin/openssl pkcs8 -in /etc/pki/filebeat.key -topk8 -out /etc/pki/filebeat.p8 -passout pass:"
# Create Symlinks to the keys so I can distribute it to all the things
filebeatdir:
file.directory:
@@ -93,9 +91,6 @@ fbcertdir:
# Convert the key to pkcs#8 so logstash will work correctly.
filebeatpkcs:
cmd.run:
- name: /usr/bin/openssl pkcs8 -in /opt/so/conf/filebeat/etc/pki/filebeat.key -topk8 -out /opt/so/conf/filebeat/etc/pki/filebeat.p8
- onchanges:
- file: /opt/so/conf/filebeat/etc/pki/filebeat.p8
- name: "/usr/bin/openssl pkcs8 -in /opt/so/conf/filebeat/etc/pki/filebeat.key -topk8 -out /opt/so/conf/filebeat/etc/pki/filebeat.p8 -passout pass:"
{% endif %}