hi, thakyou for reply, here's what I discovered:
Quote:
Just to rule out the easy ones first: do you really have a /certificate
directory at the root directory of the filesystem of your server? Remember,
that parameter is not a relative URL.
|
No, I really don't have a /certificate at root, I was using absolute
path, but in reality it is a relative path and it does have the cert in
pem format.
Quote:
There's a couple of hits on Google too, particularly one in a user note on the
SOAP part of the manual - is that any help?
>
|
Unfortunately not, but I did find a resolution by adding these two
lines of code that add some option parameters to the stream:
$result = stream_context_set_option($context, 'ssl',
'allow_self_signed', true);
$result = stream_context_set_option($context, 'ssl', 'verify_peer',
false);
This way I should accept a certificate self_signed by CA and I don't
verify it. Kinda unsafe but works well.
Alex