delphi - Error connecting with SSL -
i'm trying connecto url, using request. goberment page error eidosslconnecterror "error connecting ssl"
the code use, this, works other pages, not one
idhttp1.handleredirects := true; idhttp1.allowcookies := true; idhttp1.iohandler := tidssliohandlersocket.create(idhttp1); idhttp1.cookiemanager := tidcookiemanager.create(idhttp1); tidssliohandlersocket(idhttp1.iohandler) begin ssloptions.method := sslvtlsv1; ssloptions.mode := sslmunassigned; ssloptions.verifymode := []; ssloptions.verifydepth := 0; passthrough := true; end; idhttp1.request.useragent := 'mozilla/5.0 (windows nt 10.0; win64; x64; rv:52.0) gecko/20100101 firefox/52.0'; idhttp1.redirectmaximum := 30; shtml := idhttp1.get('https://loginc.mat.sat.gob.mx/nidp/app/login?id=xaccertisat&sid=0&option=credential&sid=0');//<----error here delphi 7, indy 9.00.10
thanks advice
it seems site wants tls v1.2, since gets negotiated when go there browser.
also, if in palemoon browser next go about:config , set pref named security.tls.version.max 1, revisit url wit tls v1.0 , get: secure connection failed error occurred during connection loginc.mat.sat.gob.mx. cannot communicate securely peer: no common encryption algorithm(s). (error code: ssl_error_no_cypher_overlap)
however, other sites tried (such banks) still work okay tls v1 set way. seems target site finicky, i'd try adjusting line: ssloptions.method := sslvtlsv1;
Comments
Post a Comment