cronos icon indicating copy to clipboard operation
cronos copied to clipboard

app.toml / tls certificate not working on the EVM RPC HTTP port

Open nebkas opened this issue 4 years ago • 5 comments

When I use a tls certificate for

# Address defines the EVM RPC HTTP server address to bind to.
address = "0.0.0.0:8545"

it doesn't work and gives the error:

SSL routines:ssl3_get_record:wrong version number

The same certificate working fine for:

# Address defines the EVM WebSocket server address to bind to.
ws-address = "0.0.0.0:8546"

Any Ideas?

nebkas avatar Oct 15 '21 13:10 nebkas

What do you mean by "use a tls certificate for" the address? do you mean to use a HTTPS terminated reverse proxy?

yihuang avatar Oct 15 '21 14:10 yihuang

When I setup the certificate here:

###############################################################################
###                             TLS Configuration                           ###
###############################################################################

[tls]

# Certificate path defines the cert.pem file path for the TLS configuration.
certificate-path = ""

# Key path defines the key.pem file path for the TLS configuration.
key-path = ""

to use the build-in webserver it works for the EVM WebSocket server with https but it's' not working for the built-in EVM RPC HTTP server with https.

nebkas avatar Oct 15 '21 14:10 nebkas

This looks like an issue on Ethermint?

tomtau avatar Oct 28 '21 02:10 tomtau

Is there any update on this?

nebkas avatar Dec 23 '21 14:12 nebkas

yeah, right now, the tls config is only used for the WebSocket server, not the HTTP json-rcp server.

yihuang avatar Mar 09 '22 04:03 yihuang