Description of problem: When connecting to at least one server, rdesktop-1.8.4-2.fc29.x86_64 fails with "ERROR: Failed to extract public key from certificate" Version-Release number of selected component (if applicable): rdesktop-1.8.4-2.fc29.x86_64 How reproducible: Always when using that server. Steps to Reproduce: 1. rdesktop bad.server.address Actual results: Failed to negotiate protocol, retrying with plain RDP. ERROR: Failed to extract public key from certificate ERROR: recv: Connection reset by peer Expected results: This is what current master (a4bdfcfe76b4d39c2d6fd7c8c5be4af90dd4b82d) gives Protocol(warning): Protocol negotiation failed with reason: SSL not allowed by server Retrying with plain RDP. Additional info: rdesktop-1.8.3-3.fc24.x86_64 also works the fix that is needed seems to be a3dfceefc2c729243b71270e3f503fa2dd57ec8d, but it does not apply cleanly to 1.8.4
Unfortunately a4bdfcfe76b4d39c2d6fd7c8c5be4af90dd4b82d always prompts for password, so in order to put it in an .desktop file, the following workaround is needed: rdesktop -p '' bad.server.address
Created attachment 1542204 [details] Rework of commit a3dfceefc2c729243b71270e3f503fa2dd57ec8d for v1.8.4
Still a problem in Fedora-30
FWIW On Fedora 29 rdesktop 1.8.3 works for me and the current patched 1.3.8 doesn't. Results: With rdesktop-1.8.3-3.fc24.x86_64 : rdesktop -b -g 2545x1333+0+27 -xl -u username -d domain w10.domain.blah.com Autoselected keyboard map en-us Connection established using plain RDP. With rdesktop-1.8.6-1.fc29.x86_64 : rdesktop -b -g 2545x1333+0+27 -xl -u username -d domain w10.domain.blah.com Autoselected keyboard map en-us Connection established using plain RDP. NOT IMPLEMENTED: data PDU 189 ERROR: rdp.c:128: rdp_recv(), unexpected stream overrun0000 03 00 01 e4 02 f0 80 68 00 01 03 eb 70 81 d5 08 .......h....p... 0010 00 00 00 eb 9d c5 c7 26 91 63 46 79 d3 f7 ae 53 .......&.cFy...S 0020 09 00 0b a9 ce a4 56 92 71 bd 19 13 3b a5 3e 3c ......V.q...;.>< 0030 37 0e 69 3c a4 6e b1 a8 07 07 8c 6a 22 21 6b 7b 7.i<.n.....j"!k{ 0040 11 4f a9 8d 3c e6 4a 8c 1d bb af 2c c0 0f 85 38 .O..<.J....,...8 0050 c2 9a ea 38 81 fc 77 eb 10 ed 10 48 cd 40 52 96 ...8..w....H.@R. 0060 dc 1a 78 23 3a 00 de c4 15 48 0f ea b6 04 ce 28 ..x#:....H.....( 0070 69 81 fe d4 15 00 92 8b 76 e2 66 83 77 af 5e 2f i.......v.f.w.^/ 0080 b8 b3 13 62 e6 6d f8 d9 da ea 57 2b 99 a8 b8 48 ...b.m....W+...H Interesting to note that repeated attempts with 1.8.3 give a slightly different "NOT IMPLEMENTED" line so I'm not able to exactly say with I think is the issue but is looks similar to the OP.
Excuse my non-caffeinated typo above: 1.8.3 works and 1.8.6 doesn't. Forcing no encryption is futile as it crashes but this may be a 1.8.3 bug.
Comment 4 looks like a separate bug to me, but I also have the issue mentioned in that comment when connecting to a Fedora 30 xrdp server (xrdp 0.9.11) - but it can connect fine to earlier Fedora versions. Also, Fedora 28's rdesktop 1.8.4 can connect fine to the Fedora 30 xrdp server, but Fedora 26's rdesktop 1.8.3 cannot ("ERROR: SSL_write: 1 (Success)") Upstream has released rdesktop 1.9.0 beta today, and this works for me.
FEDORA-2019-488ecf14e8 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-488ecf14e8
rdesktop-1.9.0-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-4972fe9cd7
rdesktop-1.9.0-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-488ecf14e8
rdesktop-1.9.0-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.
rdesktop-1.9.0-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.