-
Notifications
You must be signed in to change notification settings - Fork 649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli_wallet -s wss://{ANY VALID AUTHORITY}/ws fails with 'TLS handshake failed' #314
Comments
Anyone looking into this? It's been 3 months and this seems like a critical issue for anyone attempting to use the API according to your instructions on the "How to prepare CLI wallet for trading" located here: |
Can you please try
|
is the same thing @xeroc . problem is with the windows cli wallets downloaded from https://github.com/bitshares/bitshares-core/releases, this zip file: https://github.com/bitshares/bitshares-core/releases/download/2.0.170606/BitShares-Core-2.0.170606-x64-cli-tools.zip the cli_wallet binary connecting to servers without ssl works fine and ssl also works fine in linux so this is something related to windows build. probably @abit will be the right person to get a better answer to this. |
Also constantly experiencing this.. have there been any updates? |
The reason is Workaround:
//Update: in Ubuntu, there is a default bundle file which openssl can find and use, so didn't have this issue. |
I can report that the workaround provided by @abitmore does indeed work and the cli_wallet is now working correctly. Fantastic stuff. What's the likelihood of getting this list certificate integrated into future builds of the Windows cli_wallet so that the issue can be fully resolved? |
@webivation your issue is off topic here, it's related to STEEM but not BitShares. |
If in a ubuntu docker container , need install ca-certificates first.
|
not fixed with #839 ? reason of the reopening ? |
#839 is for docker, but this issue is about windows binaries. |
sorry, got confused with the name of the pull. got it now, thanks. |
@jmjatlanta is this still a problem with the latest windows builds? If not please close. |
Certificates are not included in the binary. I do not believe they should be. Having the user define their certificates increases flexibility and decreases liability IMO. Documentation may be a better solution (if it is not already documented). I am open to hear other's comments. If none arrive, this ticket should be closed. |
is there a way to set the cert on debian/ubuntu? |
@isamuelson
|
its already installed... i'm running under k8s trying now this legacy fix from https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/tls.md kind: ConfigMap |
yes, this fixed my issue. |
No other comments arrived. Closing as per @jmjatlanta 's suggestion. |
Re-opening for proper fix. |
Will close when bumped FC. The fix is bitshares/bitshares-fc#159. |
Bumped in #1992 |
Hey, I was on a flaky system and commented here then deleted, sorry. I updated to latest master.
|
For Ubuntu / Debian, install ca-certificates. See #314 (comment).
|
@abitmore I have that installed already
It's notable that ca-certificates maintains the file
I tried updating to the latest HEAD of EDIT: I'm no longer using this system. This issue could have been a quirk of my setup, although it was a very new install. |
Just FYI, latest FC is included in
I don't know why your
|
Just noticed that in my environment Update: can not reproduce the issue on my new computer running Ubuntu 20.04. |
Updated by @abitmore for the readers' convenience:
For Windows, the issue has been fixed in BitShares Core
4.0.0
release via bitshares/bitshares-fc#159,cli_wallet
will check the default CAs installed in the OS.wss
withhttps
(e.g. open https://api.bts.mobi/ instead ofwss://api.bts.mobi/
), then try to connect withcli_wallet
again. The underlying reason is probably thatcli_wallet
doesn't handle updating of intermediate certificates well.For Ubuntu / Debian, if you encountered this issue, try install
ca-certificates
(see #314 (comment)).--- The original message is below ---
The
cli_wallet.exe
binary part of build BitShares Core Release 2.0.170606 Windows binaries package, fails with TLS handshake failed message when attempting to connect to any wss server.Attempts have been made against a number of the
wss://
uri's listed in the lightweight client as well as thewss://
uri documented in the tutorial:wss://bitshares.openledger.info/ws
The full output from the
cli_wallet.exe
is posted below (note; the executable has been run in an Administrative level command prompt).C:\Temp\bitshares-cli>cli_wallet -s wss://bitshares.openledger.info/ws
Logging RPC to file: logs\rpc\rpc.log
1626215ms th_a main.cpp:120 main ] key_to_wif( committee_private_key ): 5KCBDTcyDqzsqehcb52tW5nU6pXife6V2rX9Yf7c3saYSzbDZ5W
1626215ms th_a main.cpp:124 main ] nathan_pub_key: BTS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
1626215ms th_a main.cpp:125 main ] key_to_wif( nathan_private_key ): 5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3
Starting a new wallet with chain ID 4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8 (from egenesis)
1626231ms 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
C:\Temp\bitshares-cli>
Second issue; in addition, the output (above) indicates that a
logs\rpc\rpc.log
file is created but this file/folder does not exist relative to the the directory from whichcli_wallet.exe
is executed. A search across the entire file-system of the server which thecli_wallet.exe
is being executed on does not locate anrpc.log
file anywhere.Please check that the
rpc.log
file indicated in the output is being generated and if it is, provide the fully qualified path in which it is located.The text was updated successfully, but these errors were encountered: