weberhofer / jsonrpcphp

JSON-RPC PHP is a couple of classes written in PHP implementing respectively client and server functionalities of the JSON-RPC protocol.
GNU General Public License v2.0
22 stars 14 forks source link

Introduced configurable path for certificate chain file in JsonRPCClient class #8

Open JSydll opened 4 years ago

JSydll commented 4 years ago

I had a problem with connections to https remotes in a small project of mine and found the solution I propose here.

Of course, there is no test for this whatsoever (except me assuring that it works on my other project), but I don't know what the testing approach might look like here.

Also, I'm aware that the position of the newly introduced optional constructor parameter might break existing use cases, but I went for my intuition and would like to hear your opinion on that.