Hello Guys,
I want send Soap requests using TLS1.2
and SHA2
. Have googled a lot but no accurate solution found.
What am i doing is
$client = new SoapClient(
$url,
array(
'ssl_method' => SOAP_SSL_METHOD_TLS,
'cache_wsdl' => WSDL_CACHE_NONE,
'trace' => 1,
'stream_context' => stream_context_create(
array(
'ssl'=> array(
'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT,
'ciphers' => 'SHA256',
'verify_peer'=>false,
'verify_peer_name'=>false,
'allow_self_signed' => true //can fiddle with this one.
)
)
)
)
)
But i can not verify is the request sent via TLS1.2
and SHA2
or not. Is there any way to do it?