php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58297 gnupg using version 3 signatures?
Submitted: 2008-07-30 10:57 UTC Modified: 2021-02-28 04:22 UTC
From: seth_gregory at harvard dot edu Assigned: cmb (profile)
Status: No Feedback Package: gnupg (PECL)
PHP Version: 5.1.6 OS: RHEL4
Private report: No CVE-ID: None
 [2008-07-30 10:57 UTC] seth_gregory at harvard dot edu
Description:
------------
Hi,

I am using the stable (1.3.1) release of the gnupg pecl extension to sign a string that is being sent to an external service.  Unfortunately, I receive bad signature errors back from this service.  I believe this to be because gnupg is creating version 3 signatures and the app I am talking to expects version 4 signatures.  I compared the two types of signatures on http://www.pgpdump.net

Reproduce code:
---------------
The signature that gnupg makes:

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFIj5143LhJDcISRa0RAs1CAJ4nHO5Jj/bOgPTTGyMnbkzPzobA0QCfXsEa
45MijrT1HPYzBuEVUo4mYf8=
=hQsl
-----END PGP SIGNATURE-----


The signature that I create using commandline gpg with the --openpgp flag:

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iEYEARECAAYFAkiPn/YACgkQ3LhJDcISRa3XYwCggj38w+ErkCixO5oR1qglr4fC
QrkAn2bRbHerMt3iHRhbXTOVvaZx9a3M
=+k8o
-----END PGP SIGNATURE-----



Expected result:
----------------
Is there a way to make the gnupg pecl library sign keys in the way I need it to?  (openpgp v4 signatures)

Thank you


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-02-15 12:52 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-02-15 12:52 UTC] cmb@php.net
Is this still an issue with latest PECL/gnupg releases?
 [2021-02-28 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 09 01:01:28 2024 UTC