Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    unable to login - SSLError

    Python SDK
    12
    25
    173
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Manoj123 @Manoj123 last edited by

      @manoj123 @admin unable to login in morning, Please resolve ASAP.

      1 Reply Last reply Reply Quote 0
      • V
        vvbchandrasekhar last edited by

        +1 to the issue. please fix asap. this is blocking

        V 1 Reply Last reply Reply Quote 0
        • V
          vvbchandrasekhar @vvbchandrasekhar last edited by

          sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check fail

          A 1 Reply Last reply Reply Quote 0
          • A
            admin @vvbchandrasekhar last edited by

            @vvbchandrasekhar This has been noted team is working on it.

            M 1 Reply Last reply Reply Quote 0
            • A
              admin @Manoj123 last edited by

              @manoj123 said in unable to login - SSLError:

              MaxRetryError: HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Max retries exceeded with url: /rest/auth/angelbroking/user/v1/loginByPassword (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091)')))

              @Manoj123 @vvbchandrasekhar we have noted this team is working on this.

              1 Reply Last reply Reply Quote 0
              • N
                nahas_n last edited by

                certificate issue . unable to get token. please rectify issue asap

                1 Reply Last reply Reply Quote 0
                • M
                  Manoj123 @admin last edited by

                  @admin markets have opened and session is positive, after a long time. Request support ASAP. Our livelihoods are dependent on this.

                  1 Reply Last reply Reply Quote 0
                  • S
                    sureAngel last edited by

                    @admin Getting below error kindly check ```
                    raise SSLError(e, request=request)
                    requests.exceptions.SSLError: HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Max retries exceeded with url: /rest/auth/angelbroking/user/v1/loginByPassword (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

                    S A 2 Replies Last reply Reply Quote 0
                    • P
                      pashriva last edited by pashriva

                      + 1
                      

                      If I am not wrong, similar issue happened a few months back also.

                      1 Reply Last reply Reply Quote 0
                      • S
                        sureAngel @sureAngel last edited by

                        @admin Even login into https://smartapi.angelbroking.com/signin# is not happening

                        A 1 Reply Last reply Reply Quote 0
                        • S
                          StocksDeveloper @Manoj123 last edited by StocksDeveloper

                          @manoj123

                          ------ SOLUTION ------

                          We have disabled the SSL checks for Angel Broking domain & we are good now orders are going through.

                          Please see if you can disable SSL checks on your HTTP client. This will solve the issue until Angel renews the certificates.

                          M S 2 Replies Last reply Reply Quote 0
                          • A
                            admin @sureAngel last edited by

                            @harish said in unable to login - SSLError:

                            @admin Even login into https://smartapi.angelbroking.com/signin# is not happening

                            A issue has been identified on SSl Certificate on trade.angelbroking.com, tab.angelbroking.com, SmartAPI and Smartstore. We are working on it and will keep you posted. Regret the inconvenience caused.

                            1 Reply Last reply Reply Quote 0
                            • M
                              Manoj123 @StocksDeveloper last edited by

                              @stocksdeveloper Can you please let us know on how to do it ? Any codes if possible please paste.

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                StocksDeveloper @Manoj123 last edited by

                                @manoj123 We cannot share our internal code. But a simple google search like this (python disable ssl verification) will be good enough to help you.

                                Check for whichever language you use.... python, java, c# etc.

                                S 1 Reply Last reply Reply Quote 0
                                • L
                                  lakshmi_73 last edited by lakshmi_73

                                  @Manoj123
                                  Just do this

                                  self.angel_obj = SmartConnect(api_key=self.config["API_KEY"],disable_ssl=True)
                                  

                                  Just add this parameter disable_ssl=True while calling SmartConnect class.

                                  This will skip the ssl_certificate validation.

                                  P V 2 Replies Last reply Reply Quote 0
                                  • S
                                    sidsam12 @StocksDeveloper last edited by

                                    @stocksdeveloper This shouldn't be solution. You cannot expect us to disable ssl for this. Here requests are not a plain get request.

                                    L 1 Reply Last reply Reply Quote 0
                                    • P
                                      pashriva @lakshmi_73 last edited by

                                      @lakshmi_73
                                      How to achieve this in Java ?

                                      L 1 Reply Last reply Reply Quote 0
                                      • L
                                        lakshmi_73 @sidsam12 last edited by

                                        @sidsam12
                                        This is not a solution, this is workaround.
                                        Even i thought it would break some of the requests but I am running by disabling certificate validation and so far things are working fine.

                                        1 Reply Last reply Reply Quote 0
                                        • L
                                          lakshmi_73 @pashriva last edited by

                                          @pashriva
                                          I am not sure pashriva, I use only python sdk.
                                          But things should be similar in java also. Check the smartapi code.

                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            sureAngel @StocksDeveloper last edited by

                                            @stocksdeveloper thanks boss it worked

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post