Getting this error on server while connecting , localhost works fine

kabraanurag90
hostname 'websocket.kite.trade' doesn't match either of 'api.kite.trade', 'www.api.kite.trade'

using websocket for the server side
  • Kailash
    Where are you getting this error?
  • kabraanurag90
    kabraanurag90 edited October 2021
    On the aws server in terminal. I am running python script which is using websocket



  • Kailash
    I'm afraid I'm unable to talk on the phone.

    I just tried connecting to websocket.kite.trade from an EC2 instance in Mumbai and it worked fine.

    What do you get when you do curl https://websocket.kite.trade from your instance?
  • kabraanurag90
    curl: (60) SSL certificate problem: unable to get local issuer certificate
    More details here: http://curl.haxx.se/docs/sslcerts.html

    curl performs SSL certificate verification by default, using a "bundle"
    of Certificate Authority (CA) public keys (CA certs). If the default
    bundle file isn't adequate, you can specify an alternate file
    using the --cacert option.
    If this HTTPS server uses a certificate signed by a CA represented in
    the bundle, the certificate verification probably failed due to a
    problem with the certificate (it might be expired, or the name might
    not match the domain name in the URL).
    If you'd like to turn off curl's verification of the certificate, use
    the -k (or --insecure) option.
  • Kailash
    Looks like the root CA bundle on your instance is broken for some reason. The cert on websocket.kite.trade is fine -- https://www.sslshopper.com/ssl-checker.html#hostname=websocket.kite.trade

    I've also tested this on multiple EC2 instances and it works fine.
Sign In or Register to comment.