Skip to content

how to remove the notation store and generate new certificate with longer validity #989

Answered by FeynmanZhou
TnGadaria asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @TnGadaria ,

It is by design that the test key and cert generated by notation cert generate-test will be expired after 1 day. You can remove the test key and cert using notation key delete and notation cert delete. See https://notaryproject.dev/docs/user-guides/cli-reference/notation_certificate_delete/. Alternatively, you can re-generate a new test key and cert using notation cert generate-test with another cert name.

If you want to sign using a key cert pair with longer validity for testing purposes, you can use openssl to generate a test key and cert and then add them to the notation trust store.

Is this answer helpful?

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@TnGadaria
Comment options

Answer selected by TnGadaria
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@yizha1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants