Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by richelectron (Initiate)
on Mar 29, 2022 at 11:36 UTC ( [id://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?

Thanks

  • 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

    Greetings!

    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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-23 22:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found