monero-integrations / monerophp

Monero PHP library + JsonRPC Client
MIT License
119 stars 76 forks source link

Error: SSL certificate problem: self signed certificate #125

Closed Farhadesfandiar closed 1 year ago

Farhadesfandiar commented 3 years ago

I use php 7.4, apache2 and run ./monerod in testnet. When I try to send my curl request to the monero on my localhost, I see this error. When I disable ssl certificate, I get the error : Error: SSL: unable to obtain common name from peer certificate

serhack commented 3 years ago

I see this error.

I can not see the error, unless you meant "Error: SSL unable to obtain common name from peer certificate". You should connect to Monerod, using SSL option set to true. I would not suggest you to disable CURLOPT_SSL_VERIFYPEER.

recanman commented 1 year ago

@serhack can you close this?