-
-
Notifications
You must be signed in to change notification settings - Fork 157
Closed
Description
How to get SSL context option capture_peer_cert_chain
...
from a failing "try to enable encryption" - peer certs already presented by tls handshake initiation -
socket/src/SecureConnector.php
Lines 63 to 66 in f54040f
throw new \RuntimeException( | |
'Connection to ' . $uri . ' failed during TLS handshake: ' . $error->getMessage(), | |
$error->getCode() | |
); |
?
Context:
Assume we connect to a server which requires client certificates to establish a connection. We will get peer certificates but fail if the server closes the connection because of missing client certificates.
This issue has some relevance at Icinga/icingaweb2-module-x509#66 .
We can fix it by dirty hacking but I just want to ask what the architects of reactphp/socket have in mind how to resolve this with this library.
Thanks for clearance