ArmanTheParman / Parmanode

An easy AF Bitcoin Node automated installation for desktop computers
MIT License
91 stars 15 forks source link

Connection to fulcrum fails. #19

Closed nostitos closed 9 months ago

nostitos commented 1 year ago

I tried with both electrum and sparrow.

Electrum does nothing at all,

Sparrow shows : "Could not connect: Failed to parse server certificates" Could be nothing.

Fulcrum logs show no connection attempt at all.

The fulcrum logs show it's listening? but to 0.0.0.0

<Controller> Initial sync ended, flushing and deleting UTXO Cache ...
<Controller> Storage UTXO Cache: Flushing to DB ...
<Controller> Block height 792911, downloading new blocks ...
<Controller> Processed 372 new blocks with 1005712 txs (2422684 inputs, 2810080 outputs, 3521969 addresses), verified ok.
<Controller> Block height 792911, up-to-date
 SrvMgr: starting 1 service ...
 Starting listener service for SslSrv 0.0.0.0:50002 ...
 Service started, listening for connections on 0.0.0.0:50002
nostitos commented 1 year ago

I deleted the config line ssl=0.0.0.0:50002

And FINALLY got that thing to get connected to via port 50001

nostitos commented 1 year ago

Given the sample config, Seems like this adding this one only risk having benefits.

# *RECOMMENDED* - TCP bind - 'tcp' - DEFAULT: 0.0.0.0:50001, Specifies the IPv4
# or IPv6 interface:port to bind to.
tcp = 0.0.0.0:50001
ArmanTheParman commented 1 year ago

New electrum wallet in Parmanode. It will connect to Fulcrum with SSL. You need to run Electrum from the Parmanode menu for it to work.

nostitos commented 1 year ago

Which part is normal / was tested? That I can't connect to fulcrum from either Sparrow or Electrum with SSL port Or that I can't connect with electrum to non-ssl port?

I create a new key and cert following this 1:1 and it worked.

https://chat.openai.com/share/07633379-bb0b-481a-9912-0a86e5b7cff8

nostitos commented 1 year ago

No matter what I did, Couldn't have electrum connect to either 50001 or 50002

Apparently we needed to append a :t at the end, GO FIGURE!

https://community.getumbrel.com/t/connecting-electrum-to-electrum-server-without-tor/1097

ArmanTheParman commented 1 year ago

Yes, tor info here could be useful

https://armantheparman.com/tor/

ArmanTheParman commented 1 year ago

Your chatgpt link doesn't work.

When using electrum, connection can be "assured" if you delete the certs and sockets from the hidden electrum directory. Parmanode takes care of it if you run Electrum from the menu.

nostitos commented 1 year ago

public GPT link died when I deleted the chat,

260 openssl genrsa -out myprivatekey.key 2048 261 ls 262 openssl req -new -key myprivatekey.key -out myCSR.csr 263 ls 264 openssl x509 -req -days 3605 -in myCSR.csr -signkey myprivatekey.key -out mycertificate.pem

nostitos commented 1 year ago

Somehow figured out I had to enter 50002:s at the end for it to connect to SSL.

ArmanTheParman commented 1 year ago

Sparrow or electrum?

nostitos commented 1 year ago

Sparrow or electrum?

The :t and :s are with Electrum. They're replacement for a SSL toggle. :t is the only way to use it with 50001 port.

Apparently :s is assumed by default but it wasn't working for me until I added it manually, Then it just disappear but stay visible on mouse-over.

image

https://github.com/spesmilo/electrum/issues/8472

Apparently it's not recommended to use the oneserver=true, Seems like there's very little privacy leak, none related to addresses lookups.

ArmanTheParman commented 1 year ago

Apparently it's not recommended to use the oneserver=true

I recommend the opposite. Don't trust.

On Tue, 6 June 2023, 3:37 am nostitos, @.***> wrote:

Sparrow or electrum?

The :t and :s are with Electrum. They're replacement for a SSL toggle. :t is the only way to use it with 50001 port.

Apparently :s is assumed by default but it wasn't working for me until I added it manually, Then it just disappear but stay visible on mouse-over.

[image: image] https://user-images.githubusercontent.com/48504624/243430041-3fd2eb03-7806-4c18-be06-6001a8c65313.png

spesmilo/electrum#8472 https://github.com/spesmilo/electrum/issues/8472

Apparently it's not recommended to use the oneserver=true, Seems like there's very little privacy leak, none related to addresses lookups.

— Reply to this email directly, view it on GitHub https://github.com/ArmanTheParman/Parmanode/issues/19#issuecomment-1577204860, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASQCCX6FN3FFFLSYB7STUF3XJYKMPANCNFSM6AAAAAAY2LY7XI . You are receiving this because you commented.Message ID: @.***>