SecureConnector: add optional TlsPeer, this...#252
SecureConnector: add optional TlsPeer, this...#252Thomas-Gelf wants to merge 1 commit intoreactphp:1.xfrom
Conversation
|
After various approaches, this seemed to be the most promising one. However, please let me know in case you want to move it elsewhere. Just in case you're wondering, I also tried to combine this with the <?php
final class ConnectedConnector implements ConnectorInterface
{
private $connection;
public function __construct(ConnectionInterface $connection)
{
$this->connection = $connection;
}
public function connect($uri)
{
return resolve($this->connection);
}
} |
|
NB: Checks are failing, but for an unrelated reason |
313ca21 to
64792e5
Compare
WyriHaximus
left a comment
There was a problem hiding this comment.
Cool! Thank you for putting the works into this PR 👍 .
P.S. What is your use case for doing this?
|
@WyriHaximus: glad that you like it! Use case: different ones. Right now I'm using it for an upcoming Icinga module where I want to ask the user to confirm whether he wants to add an unknown CA certificate to it's trust store. Once the CA is confirmed, the (ReactPHP-based) daemon needs to generate a CSR and to deal with the signing process. In future I'd love to also use it for already existing components like our certificate monitoring |
|
@Thomas-Gelf That's pretty amazing! Looking forward to the certificate monitoring component ReactPHP use, feel free to tag me when that comes |
...allows to capture your peer certificate and/or it's chain
64792e5 to
e0dcc1a
Compare
|
@Thomas-Gelf Thanks for looking into this and filing this PR! Love to see how @reactphp is used as part of @Icinga! Unfortunately, this PR currently uses the internal What are your thoughts on this? I'm also happy to jump on a quick call to discuss this in person if you want (see my profile for details) 👍 |
...allows to capture your peer certificate and/or it's chain