Skip to content

What is right validator trustRoots key? #1188

Closed Answered by phbelitz
jouros asked this question in General
Discussion options

You must be logged in to vote

Well, well, well. Welcome to the confusing world of Notaryv1.

When you enable Docker Content Trust and push an image, Docker will automatically sign it for you. For that a root and targets key are generated for you, for which you should have entered passphrases, when you first pushed and image with DCT. These keys reside in ~/.docker/trust/private. If you cat them, one of these will say role: root. From this private key, you can get the public one using openssl, BUT you need to remove the role: root annotation. So best copy the key, remove the role: root so the key is pem encoded and then do openssl ec -in <copy-of-root>.key -pubout -out root.pub. This will give you your public root key, …

Replies: 1 comment 1 reply

Comment options

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

Answer selected by jouros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants