Venafi Vault plugin revoke action

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Venafi Vault plugin revoke action

L0 Member

We are using Venafi Vault plugin from https://github.com/Venafi/vault-pki-backend-venafi and we would like to revoke certificate using the Venafi plugin.

 

We have create a role cloud-backend-digicert with store_by using "serial". We are getting error 500 when trying to revoke a certificate. We check the path-help and it seems the revoke action is valid. Can someone confirm if revoke action is supported and if yes please share how can we do that ?

 

 

$ vault path-help pki/venafi/revoke/cloud-backend-digicert

Request:    revoke/cloud-backend-digicert

Matching Route: ^revoke/(?P<role>\w(([\w-.]+)?\w)?)$

 

Configure the Certificate Manager, Self-Hosted credentials that are used to manage certificates,

 

## PARAMETERS

 

  certificate_uid (string)

 

    Common name for created certificate

 

  role (string)

 

    The desired role with configuration for this request

 

## DESCRIPTION

 

Configure Certificate Manager, Self-Hosted first

 

-----

 

$ vault read pki/venafi/roles/cloud-backend-digicert

Key           Value

---           -----

chain_option       last

generate_lease      false

ignore_local_storage   false

issuer_hint       n/a

max_ttl         0s

min_cert_time_left    720h

no_store         false

role_zone        n/a

server_timeout      5m

service_generated_cert  false

store_by         serial

store_pkey        true

ttl           0s

venafi_secret      cloud-backend-digicert

 

-----

 

$ vault write pki/venafi_test/revoke/cloud-backend-digicert certificate_uid=0c-e2-c5-fe-26-53-69-6a-57-7c-49-22-c6-67-8d-85

 

 

Error writing data to pki/venafi_test/revoke/cloud-backend-digicert: Error making API request.

 

URL: PUT https://vault/v1/pki/venafi_test/revoke/cloud-backend-digicert

Code: 500. Errors:

 

* 1 error occurred:

    * plugin is shut down

 

1 REPLY 1

L2 Linker

Looking at this issue on the github for Vault tells me that revoking is possible:

https://github.com/Venafi/vault-pki-backend-venafi/issues/170

"This works from the vault CLI using the /revoke/ path" -

Vcert also has an explicit function (Vcert is used in this plugin to talk to the platform for the cert requests)

https://github.com/Venafi/vcert/blob/master/README-CLI-PLATFORM.md

 

I would recommend trying to revoke the same certificate using the revoke API command directly to see if you get the same 500 error or not.

https://docs.venafi.com/Docs/currentAPI/index.html#?route=post-/vedsdk/certificates/Revoke

 

If you don't, I'd open an issue on the Venafi Vault Github page so the devs/community knows about it and can address it. If you do get a 500 error, I would open a normal support ticket so that the platform can be investigated.

 

  • 36 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!