Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client CSR is not deleted CentOS 7 #184

Open
terryjrjoyce opened this issue May 24, 2022 · 2 comments
Open

Client CSR is not deleted CentOS 7 #184

terryjrjoyce opened this issue May 24, 2022 · 2 comments

Comments

@terryjrjoyce
Copy link

When revoking the clients the CA cert is not removed from the server.

Current Code

- name: Revoke certificates
  command: sh revoke.sh {{ item }}.crt
  changed_when: true
  args:
    chdir: "{{ openvpn_key_dir }}"
  with_items:
    - '{{ openvpn_revoke_these_certs }}'
    - '{{ openvpn_cert_sync_revoke | default([]) }}'

New Code

- name: Revoke client crt
  file:
    path: "{{ openvpn_key_dir }}/{{ item }}.crt"
    state: absent
    force: true
  with_items:
    - '{{ openvpn_revoke_these_certs }}'
    - '{{ openvpn_cert_sync_revoke | default([]) }}'
@jbeyerstedt
Copy link
Contributor

I think this would be fixed by #186.

@Nmishin
Copy link

Nmishin commented Nov 26, 2024

Merged to the forked role: aovpn/ansible-role-openvpn#37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants