6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/30/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#4177] Can't send personal pgp public key to public keyserver pgp.mit.edu
*
Your Email Address
*
Spam protection
Enter the letters below:
__ . ..__..___.. . / `| || | _/ |\ | \__.|/\||__|./__.| \|
Comment
> Hi! > > > > Under IMP->Options->PGP Options, when I click "Send Key to Public > Keyserver", I receive a message stating that my persoal public key > was sent successfully, the real message is "Key successfully sent to > the public keyserver.", but when I check in the public key server, it > says there's no corresponding public key stored. > > > > I used tcpdump to check Horde<->Public Key Server conversation and > realized that query sent by Horde was incorrect. I corrected the code > and it started funcioning correctly. > > > > Here follows my tampering in the code: > > > > --- lib/Horde/Crypt/pgp.php.1.101 2006-07-19 09:35:31.000000000 -0300 > > +++ lib/Horde/Crypt/pgp.php 2006-07-19 12:20:08.000000000 -0300 > > @@ -743,7 +743,7 @@ > > /* Connect to the public keyserver. _connectKeyserver() returns a > > PEAR_Error object on error and the output text on success. */ > > $pubkey = 'keytext=' . urlencode(rtrim($pubkey)); > > - $cmd = 'POST /pks/add HTTP/1.0\nContent-Length: ' . > strlen($pubkey) . "\n\n" . $pubkey . "\n"; > > + $cmd = "POST /pks/add HTTP/1.0\r\nHost: " . $server . > ":11371\r\n" . "User-Agent: Horde\r\n" . "Content-type: > application/x-www-form-urlencoded\r\n" . "Content-length: " . > strlen($pubkey) . "\r\n" . "Connection: close\r\n\r\n" . $pubkey . > "\r\n"; > > $result = $this->_connectKeyserver($cmd, $server, $timeout); > > if (is_a($result, 'PEAR_Error')) { > > return $result; > > > > I hope I have fixed the right way. > > > > Regards, > > > > Vanner
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers