How to use same gpg keys on different machines?
Issue
I have generated gpg keys on one machine but I would like to use same keys on different server to sign my rpm packages.
I have copied .rpmmacros from one server to another but rpm --resign package.rpm returns gpg: signing failed: No secret key
Environment
Red Hat Enterprise Linux (RHEL) 6.
Red Hat Enterprise Linux (RHEL) 5.5 and later.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
