pfsense:certificates:revoke_certificate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pfsense:certificates:revoke_certificate [2020/05/11 09:12] – peter | pfsense:certificates:revoke_certificate [2021/02/19 10:08] (current) – [Checking the logs] peter | ||
---|---|---|---|
Line 13: | Line 13: | ||
</ | </ | ||
+ | ---- | ||
+ | ===== Create new Revocation List ===== | ||
+ | Navigate to **System -> Cert Manager**. | ||
+ | |||
+ | Select **Certificate Revocation**. | ||
+ | |||
+ | * Click **Add or Import CRL**. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | In **Create new Revocation List**: | ||
+ | |||
+ | * Method: | ||
+ | * Descriptive name: **ShareWiz OpenVPN - Revocation List**. | ||
+ | * Certificate Authority: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | In **Internal Certificate Revocation List**: | ||
+ | |||
+ | * Lifetime (Days): | ||
+ | * Serial: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * Click **Save**. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Revocation List is shown as created ==== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Add a user certificate to the Revocation List ===== | ||
+ | |||
+ | Navigate to ** System -> Cert.Manager -> Certificate Revocation**. | ||
+ | |||
+ | * Click the Pencil Icon to Edit CRL. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | shows: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | This returns to the main Certificate Revocation page with one certificate showing as on the Revocation list. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Check the user certificate is revoked ===== | ||
+ | |||
+ | Navigate to ** System -> Cert.Manager -> Certificate Revocation**. | ||
+ | |||
+ | * Click the Pencil Icon to Edit CRL. | ||
+ | |||
+ | shows: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Navigate to **System -> Cert Manager -> Certificates**. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | |||
+ | <WRAP alert> | ||
+ | **ALERT: | ||
+ | |||
+ | Even if the certificate is deleted from the from revocation list, but the certificate is still in the certificate database, the user will still be able to connect! | ||
+ | |||
+ | The Revocation Lists has to be enabled and configured. | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Add the Revocation list to the VPN Server ===== | ||
+ | |||
+ | Navigate to **VPN -> OpenVPN -> Servers**. | ||
+ | |||
+ | * Click the Pencil Icon to edit. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | In **Cryptographic Settings**: | ||
+ | |||
+ | * Peer Certificate Revocation list: **Select the Revocation list to use**. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * Click **Save**. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Test ===== | ||
+ | |||
+ | Try to connect using the VPN client. | ||
+ | |||
+ | This should fails. | ||
+ | |||
+ | ==== Checking the logs ==== | ||
+ | |||
+ | Navigate to **Status -> System Logs -> OpenVPN**. | ||
+ | |||
+ | < | ||
+ | ... | ||
+ | Feb 19 09:46:24 openvpn 2000 192.168.1.102: | ||
+ | Feb 19 09:46:24 openvpn 2000 192.168.1.102: | ||
+ | Feb 19 09:46:24 openvpn 2000 192.168.1.102: | ||
+ | Feb 19 09:46:24 openvpn 2000 192.168.1.102: | ||
+ | Feb 19 09:46:24 openvpn 2000 192.168.1.102: | ||
+ | Feb 19 09:47:01 openvpn 2000 192.168.1.102: | ||
+ | Feb 19 09:47:01 openvpn 2000 192.168.1.102: | ||
+ | Feb 19 09:47:01 openvpn 2000 192.168.1.102: | ||
+ | Feb 19 09:47:01 openvpn 2000 192.168.1.102: | ||
+ | Feb 19 09:47:01 openvpn 2000 192.168.1.102: | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE:** The log shows the certificate verification failed due to certificate revoked | ||
+ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | <WRAP alert> | ||
+ | **ALERT: | ||
+ | |||
+ | Deleting certificates will not disable VPN connectivity. | ||
+ | |||
+ | The Revocation Lists has to be enabled and configured. | ||
+ | |||
+ | Even if the certificate is deleted from the from revocation list, but the certificate is still in the certificate database, the user will still be able to connect! | ||
+ | |||
+ | </ | ||
pfsense/certificates/revoke_certificate.1589188344.txt.gz · Last modified: 2020/07/15 09:30 (external edit)