node.js - Twilio Voice URL - Giving HTTP status code 502 when HTTPS (SSL) is implemented -
i have configured ssl of apis ( node.js). have purchased certs godaddy. , verified using openssl command using tlsv1 protocol.
but when set twilio number call api ist throwing http status code 502. work when turn off ssl. issue twilio calling https api. error : attempt retrieve content https://api... returned http status code 502.
can please ?
it seems twilio priorities ecdhe ciphers. default node server using tls cipher: tls_rsa_with_aes_256_cbc_sha256. aes256-sha cbc cipher , therefore susceptible beast attacks. not use it. added list of ciphers include , execlue in node server. see doc : https://nodejs.org/api/tls.html
after adding below options node server ssl settings twilio started communication https apis.
ciphers:[ "ecdhe-rsa-aes256-sha384", "dhe-rsa-aes256-sha384", "ecdhe-rsa-aes256-sha256", "dhe-rsa-aes256-sha256", "ecdhe-rsa-aes128-sha256", "dhe-rsa-aes128-sha256", "high", "!anull", "!enull", "!export", "!des", "!rc4", "!md5", "!psk", "!srp", "!camellia" ].join(':'), honorcipherorder: true
Comments
Post a Comment