Bitcoin Forum
May 22, 2024, 02:13:35 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: EasyBitcoin-PHP SSL Error  (Read 898 times)
linuxluigi (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile WWW
April 02, 2014, 04:04:08 PM
 #1

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
aceat64
Full Member
***
Offline Offline

Activity: 307
Merit: 102



View Profile
April 02, 2014, 09:47:19 PM
 #2

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);
linuxluigi (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile WWW
April 03, 2014, 06:00:43 PM
 #3

thank you, I found the problem
"SSL certificate problem: self signed certificate"
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!