Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: linuxluigi on April 02, 2014, 04:04:08 PM



Title: EasyBitcoin-PHP SSL Error
Post by: linuxluigi on April 02, 2014, 04:04:08 PM
Hi, after a adding mutiple server I added SSL to my Bitcoin instanz. When I use the jsonRPCClient.php it work fine but my software based now on easybitcoin -.- and when I try to use ssl there I get no output.

Code:
$bitcoin = new Bitcoin('username','password','localhost','8332','https');
$bitcoin->setSSL();
$bitcoin->getinfo();

https://github.com/aceat64/EasyBitcoin-PHP


Title: Re: EasyBitcoin-PHP SSL Error
Post by: aceat64 on April 02, 2014, 09:47:19 PM
Check the output of $bitcoin->error to see why the call failed. When an error occurs your call will return false and the error message is placed in $bitcoin->error.

Example code:
Code:
var_dump($bitcoin->error);


Title: Re: EasyBitcoin-PHP SSL Error
Post by: linuxluigi on April 03, 2014, 06:00:43 PM
thank you, I found the problem
"SSL certificate problem: self signed certificate"