GPG Key path #3272
-
Hi Apart from gpg-import option, is there any other way to import the gpg key path to ostree remote? If yes then, how to do it? Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can anyone help me to answer my question above? I am looking for help on adding the GPG key other than I don't want to import the GPG key with |
Beta Was this translation helpful? Give feedback.
Sorry, I meant to reply to this initially. You can definitely put the keyring directly on disk. The import options are just helpers to serialize keys to the appropriate locations. At Endless we've been putting our main keyring in trusted.gpg.d for years.
Unlike when importing, I'm pretty sure the on disk keyring needs to be unarmored. I.e., a raw stream of PGP packets. If you want to scope the keys to a particular remote, the path convention is
$repo_path/$remote_name.trusted.gpg
.