Skip to content

tls connection without verify peer failed #1105

Closed Answered by wiryonolau
wiryonolau asked this question in Q&A
Discussion options

You must be logged in to vote

Hi I need time to prepare my code for share
Here is what I found.

$config = new AMQPConnectionConfig();

// This doesn't set the correct network protocol to ssl in AMQPConnectionFactory 
// PhpAmqpLib\Wire\IO\StreamIO will still use "tcp" if networkprotocol not set
$config->setIsSecure(true); 
// We need to manually set the network protocol too.
$config->setNetworkProtocol("ssl"); 

Still testing ssl
Setting setSslVerify false works normally as long the cert and ca cert is null

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@lukebakken
Comment options

@wiryonolau
Comment options

@lukebakken
Comment options

@wiryonolau
Comment options

Answer selected by wiryonolau
@wiryonolau
Comment options

@lukebakken
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1104 on July 26, 2023 13:24.