BitShares Forum
Main => Technical Support => Topic started by: btshh on September 17, 2017, 03:27:25 am
-
Hi, I tried to follow the documentation and wanted to run my own cli wallet, but it throws an certificate error every time:
cli_wallet.exe --server-rpc-endpoint=wss://bitshares.openledger.info/ws -H 127.0.0.1:8092 -r 127.0.0.1:8093
Logging RPC to file: logs\rpc\rpc.log
768880ms th_a main.cpp:120 main ] key_to_wif( committee_private_key ): 5KCBDTcyDqzsqehcb52tW5nU6pXife6V2rX9Yf7c3saYSzbDZ5W
768880ms th_a main.cpp:124 main ] nathan_pub_key: BTS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
768895ms th_a main.cpp:125 main ] key_to_wif( nathan_private_key ): 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
Starting a new wallet with chain ID 4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8 (from egenesis)
768911ms th_a main.cpp:172 main ] wdata.ws_server: wss://bitshares.openledger.info/ws
0 exception: unspecified
TLS handshake failed
{"message":"TLS handshake failed"}
asio websocket.cpp:518 fc::http::detail::websocket_tls_client_impl::{ctor}::<lambda_79cc34a518286825a5be07605053c212>::operator ()
{"uri":"wss://bitshares.openledger.info/ws"}
th_a websocket.cpp:704 fc::http::websocket_client::secure_connect
{"uri":"wss://bitshares.openledger.info/ws"}
th_a websocket.cpp:678 fc::http::websocket_client::connect
I'm using BitShares-Core-2.0.170710 downloaded from github release page.
Anyone can shed some light on this? Thanlks!
-
1. Скачайте Mozilla CA certificate store отсюда: https://curl.haxx.se/ca/cacert.pem
2. Запустите cmd и выполните: set SSL_CERT_FILE=c:/1/cacert.pem
3. Запустите кошелек: c:/1/cli_wallet -s wss://bitshares.openledger.info/ws
-
start.bat
set SSL_CERT_FILE=cacert.pem
cli_wallet -s wss://bitshares.openledger.info/ws -r 127.0.0.1:8093
Delphi:
var
R1: TIdHTTP;
Memo1: TMemo;
Strm : TStringStream;
...
Strm := TStringStream.Create( '{"jsonrpc": "2.0", "method": "list_account_balances", "params": ["xxx"], "id": 200}' );
Memo1.Lines.Add( R1.Post('ws://127.0.0.1:8093', Strm ) );
...