smartConnect error
-
@admin tell your tech team to update the SSL certificate.
@rishi Yes, I am having the same issue. This is due to the angel broking SSL certificate expiry date. NotAfter: Tue Aug 24 05:29:59 IST 2021
Turning on ssl logs helped.
Here is the stack trace
Caused by: java.security.cert.CertificateExpiredException: NotAfter: Tue Aug 24 05:29:59 IST 2021
at sun.security.x509.CertificateValidity.valid(CertificateValidity.java:277)
at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:677)
at sun.security.provider.certpath.BasicChecker.verifyValidity(BasicChecker.java:190)
at sun.security.provider.certpath.BasicChecker.check(BasicChecker.java:144)
at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:125)
... 39 more} -
@kkt237 i don't think this is the issue. please refer to ssl logs.
-
@vvbchandrasekhar I checked the certificate. Its valid till 31jan 2022.
-
Expired cert is from https://bot.whatismyipaddress.com/ not from smart connect api.
-
@vvbchandrasekhar https://bot.whatismyipaddress.com/ has expired cert and that's why its failing.
-
@kkt237 got it. i tried -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
but still they are not working. did you try something similar? -
@vvbchandrasekhar It will not work as the ssl issue is thrown/checked with in the class file.
Did you import smartapi-java as a jar or as a source?
I tried importing the source and corrected the client code where it fetches the public ip.
-
@kkt237 did it work? I also checked out the code now of smart-connect-api from their github. will try to make changes to it if you think it helped you.
-
@kkt237 Hardcoding the public ip works.
String clientPublicIP = "10.21.13.45";
A temporary workaround for the moment -
@G25453 i changed it to
https://checkip.amazonaws.com/
-
@garry07396 Yes. There are many as such. Good you found one from aws.
-
@vvbchandrasekhar It worked for me. Look at @garry07396 comment. You can use that url too
-
@kkt237 @garry07396 thanks a lot. will try in the interim.
@admin please provide an ETA for the new jar.
-
HI @vvbchandrasekhar Our team is working on it on priority once fixed we will update here.
-
@admin When can we expect the problem to be resolved. This is the second day without any trade
-
HI @rishi This issue has been resolved kindly update us if you face any other issue.
-
@admin I am still facing the same error.
-
@rishi As mentioned by garry I changed the url to
https://checkip.amazonaws.com/
and it works. -
@rishi Would you be updating this change in Github?
-
@rishi i can see it is updated on https://github.com/angelbroking-github/smartapi-java
I pulled in the latest dist smart-api.jar and able to connect to the broker this afternoon