-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I create a revocation certificate for a keypair generated with OpenPGP-PHP? #31
Comments
Could this also be related to #27? Not sure, did not yet test the creation of revocation certificates using openpgp-php. |
I have never written code for generating or handling revocation certificates. The library certainly provides the tools needed to build such a thing, and it could be added to the library, but there would be some extra cod needed. |
What about creating a revocation certificate using a different tool (like GnuPG) for a keypair created with OpenPGP-PHP? That's what I was trying to do originally, but that failed as described above, too. |
Just a note to say that @singpolyma updated the genkey example and 741fec2 shows the fix needed to have the ability to create a revocation certificate manually. :) |
Yes, thanks for the heads up. Saw the changes and read the notifications =) |
I am trying to figure out how to create a revocation certificate for a keypair generated with this library but did not find any information about doing this in the examples. I notice that the API docs do contain classes such as
OpenPGP_SignaturePacket_ReasonforRevocationPacket
but I'm unclear on whether these classes simply parse OpenPGP packets or actually create revocation certificates themselves.In lieu of code, I tried importing a file containing both the private and public key parts into my GnuPG keyring and then running
gpg2 --output ~/tmp/testrevoke.asc --gen-revoke MY_KEY_ID
, but I received the following error output:Am I doing something wrong? Is it possible to generate revocation certificates for keys that OpenPGP-PHP generates?
The text was updated successfully, but these errors were encountered: