how to remove the notation store and generate new certificate with longer validity #989
-
Hi, Can someone please provide the steps to remove the cert, key, and store? Also, provide the details to generate new store, cert and key with longer validity. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @TnGadaria , It is by design that the test key and cert generated by If you want to sign using a key cert pair with longer validity for testing purposes, you can use Is this answer helpful? |
Beta Was this translation helpful? Give feedback.
-
Linking issue #647 |
Beta Was this translation helpful? Give feedback.
-
I found this link: #539 (comment) as workaround for now to add the key. |
Beta Was this translation helpful? Give feedback.
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 usingnotation key delete
andnotation 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 usingnotation 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?