electrum-personal-server icon indicating copy to clipboard operation
electrum-personal-server copied to clipboard

config.ini: certfile,keyfile options are ignored

Open micressor opened this issue 2 years ago • 2 comments

When i set certificate paths to

certfile = /etc/ssl/certs/electrumpersonalserver.crt
keyfile = /etc/ssl/private/electrumpersonalserver.key

startup of eps still says

DEBUG:2022-03-10 19:10:52,100: using cert: /home/bitcoin/.local/lib/python3.9/site-packages/electrumpersonalserver/certs/cert.crt, key: /home/bitcoin/.local/lib/python3.9/si
te-packages/electrumpersonalserver/certs/cert.key

I think there is something wrong. all other options are applied.

eps version: 0.2.3

micressor avatar Mar 10 '22 18:03 micressor

Found the root cause. Permission to the key file was not correct. But the error handling in this case could be better. https://github.com/chris-belcher/electrum-personal-server/blob/cc3085caf227fc8678e79f24a956fe44e8e6dbfd/electrumpersonalserver/server/common.py#L317-L334

micressor avatar Mar 11 '22 06:03 micressor

Thanks for the issue.

I guess a debug print statement could be added to the else: branch?

chris-belcher avatar Mar 12 '22 18:03 chris-belcher