Uninstalling the Plugin
| Uninstalling will permanently delete all certificates, private keys, and configurations stored in Vault. Backup your data before proceeding if you need to retain it. |
To remove the Sectigo Vault PKI plugin from HashiCorp Vault:
-
Export certificates you want to keep (Optional).
List configurations:
vault list sectigo-vault-pki/configsList certificates for a config:
vault list sectigo-vault-pki/certs/<config_name>Export certificate:
vault read -format=json sectigo-vault-pki/certs/<config_name>/<cert_id> > backup.jsonExtract certificate:
jq -r '.data.sectigo_certificate_string' backup.json > certificate.pemExtract private key:
jq -r '.data.sectigo_private_key_string' backup.json > private_key.pem -
Disable the Secrets Engine.
vault secrets disable sectigo-vault-pkiThis permanently deletes all data stored in the plugin.
-
Deregister the Plugin.
List plugins to find exact name:
vault plugin list secretDeregister the plugin (use the exact name from the list above):
vault plugin deregister secret <plugin-name> -
Delete the plugin binary file from Vault’s plugin directory on the file system.
-
Verify that the plugin is no longer on either list:
vault secrets listvault plugin list secret -
Verify that the binary file no longer exists in the plugin directory.