-
Notifications
You must be signed in to change notification settings - Fork 33
HTTPS with self signed certificates #50
Comments
Hi @yn-alex. Acknowledged. Will investigate this and get back to you. |
@yn-alex It might be the case that PANIC does not trust self-signed SSL certificates. Could you I've done two things in that branch (can see here):
Would be great if you try this out and let me know if it resolves your problem. Feel free to also post the errors you get; these would be very helpful for me to better understand the problem. |
Hi @migueldingli1997 - Will check ASAP and get back to you. Thank you ! |
Hi, It works with that branch, this is the Warning I see now, which is expected because I'm using a wildcard self-generated certificate:
Additionally, it now supports a cert.pem for the Cosmos node requests - I didn't have to copy this. I simply cloned the branch, copied my config and started it. |
That's great. I will work on a more permanent fix and get back to you. Feel free to continue using that branch for the meantime. |
@yn-alex @easy2stake Oh I think I misunderstood. You did not need to copy the Could you try using the other PANIC instance (i.e. not this branch) and checking if this now works? |
Hi, Sorry fort the late reply, meanwhile I worked around the issue but I'd like to help you close this.
But 20 seconds later:
So it basically goes past the first start yet later it cannot access the node. Maybe another function calls the RPC and needs the verify="cert.pem" ? |
Hello,
I tried to connect the PANIC to a RPC that is behind an NGINX server with SSL enabled and a self signed certificate.
Setup: 3 servers
PANIC ------(HTTPS)----NGINX:443----(HTTP)-----COSMOS-RPC:26657
Error:
The CA certificate is installed on the machine where PANIC is run.
A
curl https://xxxxxxxxxxxxxxxxx:8443/node1/status
works fine, no errors prompted.Then I simply swapped https to http above, same URL, same setup, just HTTP instead of HTTPS and, of course different pot (80) and it worked.
Therefore I guess it should be the self-signed certificate to blame.
Any sugestions ?
The text was updated successfully, but these errors were encountered: