How can i use rpcssl??

+1 vote
Hello multichain developers~

I have questions because I have difficulty using rpcssl.

Below is my multichain.conf.

-----------------multichain.conf-----------------
rpcuser=multichainrpc
rpcpassword=88888888
rpcport=4443
rpcallowip=192.168.0.0/24
rpcssl=1
rpcsslcertificatechainfile=server.cert
rpcsslprivatekeyfile=server.pem
rpcsslciphers=TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH
server=1
-------------------------------------------------

And then ran multichain through $ multichaind test -daemon.

 

If i enter

$ multichain-cli test getinfo,

I get a response:

error: no response from server.

Also, if i enter

$ curl --user multichainrpc --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' https://192.168.0.125:4443/

I get a response:

curl: (35) gnutls_handshake() failed: The TLS connection was non-properly terminated.

 

 

The above settings are all.

How can i use rpcssl?? TT
asked Jan 29, 2018 by Jeon

1 Answer

0 votes
The problem is most likely that you did not set up a server certificate and private key. While we don't officially support the rpcssl feature, you should find that the instructions on this page work for you (of course, making the appropriate changes for MultiChain):

https://wiki.reddcoin.com/index.php/Enabling_SSL_on_original_client_daemon
answered Jan 31, 2018 by MultiChain
I succeeded because of you.

Thank you for your feedback!
...