tdex-network / tdex-daemon

Go implementation of the TDEX Beta Daemon
https://tdex.network
MIT License
11 stars 13 forks source link

Support TLS termination from CA signed certificate for the HTTP JSON interface #598

Closed tiero closed 2 years ago

tiero commented 2 years ago

At the moment calling the HTTP JSON interface will not work with TLS CA signed certificate

curl --location --request POST 'https://provider.tdex.network:9945/v1/markets' \
--header 'Content-Type: application/json' \
--data-raw '{}'
{
    "code": 14,
    "message": "connection error: desc = \"transport: authentication handshake failed: x509: certificate is valid for provider.tdex.network, not localhost\"",
    "details": []
}