Skip to content

Commit

Permalink
Merge pull request #123 from mvdriel/fix-ocsp-filename
Browse files Browse the repository at this point in the history
Fix OCSP filename
  • Loading branch information
tersmitten authored Feb 10, 2021
2 parents f5befea + 80ceb51 commit 0fefce8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
python-version: '3.x'

- name: Install test dependencies
run: pip install yamllint ansible-lint
run: pip install yamllint ansible-lint[core]

- name: Lint code
run: |
Expand Down
4 changes: 2 additions & 2 deletions templates/usr/local/bin/haproxy-letsencrypt-ocsp-deploy.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ for path in $(ls -1d {{ haproxy_letsencrypt_ssl_src_path }}/*/); do

ocspUrl="$(openssl x509 -noout -ocsp_uri -in ${path}{{ haproxy_letsencrypt_ssl_cert_name }})";

openssl ocsp -no_nonce -respout "{{ haproxy_global_crt_base }}/${prefix}-${cert}.ocsp" \
openssl ocsp -no_nonce -respout "{{ haproxy_global_crt_base }}/${prefix}-${cert}.pem.ocsp" \
-issuer "${path}{{ haproxy_letsencrypt_ssl_chain_name }}" \
-verify_other "${path}{{ haproxy_letsencrypt_ssl_chain_name }}" \
-cert "${path}{{ haproxy_letsencrypt_ssl_cert_name }}" \
-url "${ocspUrl}";

rm -f "{{ haproxy_global_crt_base }}/${removePrefix}-${cert}.ocsp";
rm -f "{{ haproxy_global_crt_base }}/${removePrefix}-${cert}.pem.ocsp";
done

{% if ansible_service_mgr == 'systemd' %}
Expand Down

0 comments on commit 0fefce8

Please sign in to comment.