Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Crypt::OpenPGP does not support .kbx ring format?

by richelectron (Initiate)
on Mar 29, 2022 at 11:36 UTC ( #11142497=perlquestion: print w/replies, xml ) Need Help??

richelectron has asked for the wisdom of the Perl Monks concerning the following question:

I've been trying to get Crypt::OpenPGP to work with a new pubring.kbx file but it fails with 'No known recipients for encryption'.

If I export the keys in my pubring.kbx file to a pubring.gpg file then I can get the process to work successfully.

Is there any way to get Crypt::OpenPGP to work with new .kbx files?

Alternatively, what PGP implementation would you recommend for Perl scripts that need to be Operating System agnostic (specifically work on Windows, Linux, FreeBSD) in 2022?


  • Comment on Crypt::OpenPGP does not support .kbx ring format?

Replies are listed 'Best First'.
Re: Crypt::OpenPGP does not support .kbx ring format?
by alexander_lunev (Pilgrim) on Mar 29, 2022 at 12:45 UTC


    I think that this module is a past, as well as OpenPGP itself. There were no activity in metacpan for 24 months on this module, and, to be honest, why would it be needed to someone today? One reason is a support for legacy systems, but if you plan to build a new messaging system with OpenPGP, think twice. We thought of adapting this module (and OpenPGP as a cryptographic system) to our system that we are building, and we refused PGP system in favor of new pretty well standardized and modern (in term of cryptography) JOSE system (see RFCs 7515-7520). If you building something new, it is a way to do it less complex and more secure than PGP system.

    But if you insist, I'm afraid then you will have to write all support you want yourself, or find some way around (convert keyrings with some other OpenPGP util? I don't know, honestly), because OpenPGP is definitely the past, which nobody will dig out.

    P.S.: Those PGP packets... Why packets?...

      Thanks for the feedback. This is a legacy system that is already making use of PGP, not a new one. I will keep your suggestion of JOSE in mind and look into it though.
Re: Crypt::OpenPGP does not support .kbx ring format?
by Anonymous Monk on Mar 29, 2022 at 12:37 UTC
      Thanks, I will probably go this route.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11142497]
Approved by davies
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2023-03-26 08:29 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (63 votes). Check out past polls.