File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ templates:
66 pre-start.sh.erb: bin/pre-start
77
88properties:
9+ delete_system_certs:
10+ description: "Flag to delete the default trusted certificate store"
11+ default: false
912 certs:
1013 description: "Concatenated set of certificates in PEM format"
1114 default: ""
Original file line number Diff line number Diff line change 44
55CONF_DIR=/var/vcap/jobs/ca_certs/config
66
7+ < % if p(" delete_system_certs" ) %>
8+ # deleting the certificates on ca-certificates.conf
9+ echo ' ' > /etc/ca-certificates.conf
10+ rm -rf /usr/share/ca-certificates/*
11+ # choose to *not* trust new certs
12+ echo ' ca-certificates ca-certificates/trust_new_crts select no' | debconf-set-selections -
13+ < % end %>
14+
715echo " deleting old certificates"
816rm -f /usr/local/share/ca-certificates/bosh_os_conf_ca_cert_*
917
You can’t perform that action at this time.
0 commit comments