Skip to content
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

Update the default certificate as it expired #289

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

starius
Copy link

@starius starius commented Mar 14, 2023

Followed commands from
#286 (comment)

$ openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
$ openssl rsa -passin pass:x -in server.pass.key -out server.key
$ rm server.pass.key
$ openssl req -new -key server.key -out server.csr
$ openssl x509 -req -days 1825 -in server.csr -signkey server.key -out server.crt
Signature ok
subject=C = US, ST = California, L = Sunnydale, O = Buffy The Vampire Slayer, CN = electrum-server.tld
$ openssl x509 -enddate -in server.crt
notAfter=Mar 12 07:34:45 2028 GMT
$ mv server.key cert.key
$ mv server.crt cert.crt

Fix #287

Followed commands from
chris-belcher#286 (comment)

$ openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
$ openssl rsa -passin pass:x -in server.pass.key -out server.key
$ rm server.pass.key
$ openssl req -new -key server.key -out server.csr
$ openssl x509 -req -days 1825 -in server.csr -signkey server.key -out server.crt
Signature ok
subject=C = US, ST = California, L = Sunnydale, O = Buffy The Vampire Slayer, CN = electrum-server.tld
$ openssl x509 -enddate -in server.crt
notAfter=Mar 12 07:34:45 2028 GMT
$ mv server.key cert.key
$ mv server.crt cert.crt

Fix chris-belcher#287
@MartinacPlus
Copy link

I recently encountered this problem when installing EPS on Windows. Could not figure out why EPS <-> Electrum Wallet connection is not working when everything was set correctly. Then I thought I resolved the problem, the connection worked with the new cert. Then I regenerated new cert and it broke again.

After a lot of swearing, I found out that Electrum Wallet keeps a suspiciously named file 127.0.0.1 in %AppData%\Roaming\Electrum\certs. The expectation was that it is the old cached cert that has already been overwritten in EPS. And because of cert-pinning, the fingerprint no longer matches.
And indeed, after I deleted the file 127.0.0.1 and restarted the Wallet, the connection works again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update the default certificate as it expired today
2 participants