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.
    • 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
                              • A
                                Arjun @sureAngel last edited by

                                @harish @admin any update on this still in error

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

                                  @lakshmi_73 thanks. it's working now

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    MS last edited by

                                    any update on this ?

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

                                      @ms said in unable to login - SSLError:

                                      any update on this ?
                                      This has been already resolved.

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