B4A Question FTP over SSL fails - teddybear (first post)    Feb 02, 2023 Try adding dim ctm As CustomTrustManager ctm.InitializeAcceptAll ftpclient.SetCustomSSLTrustManager(ctm) B4J Question JNet ver 1.77 - Erel (first post)    Oct 03, 2018   (6 reactions) This error means that the server certificate is not valid or not recognized. Maybe it has expired.
Download the attached library (jNet v1.80). It adds an option to use a custom trust manager:
Dim trustall As CustomTrustManager
trustall.InitializeAcceptAll
pop.SetCustomSSLTrustManager(trustall)
T B4A Question WSS SSL Issues - Erel (first post)    Apr 19, 2019   (1 reaction) Dim ws1 As WebSocket
Dim cs As CustomTrustManager
cs.InitializeAcceptAll
ws1.Initialize("ws")
ws1.SetCustomSSLTrustManager(cs)
Depends on Net library.
It will probably won't help in this case. B4A Question FTP: I Can Transfer Files via Filezilla Client to FTP Server but not via B4A Code - Erel (first post)    Apr 19, 2015   (1 reaction) I know that you already switched to a different server. However this issue is solvable by setting a custom trust manager: Dim ctm As CustomTrustManager ctm.InitializeAcceptAll FTP.SetCustomSSLTrustManager(ctm) B4A Question Where can i find the library for CustomTrustManager? - Erel (first post)    Apr 17, 2020   (1 reaction) Search for the object: https://www.b4x./?query=customtrustmanager
The first small link will take you to the library documentation (Net). B4i Question CustomTrustManager in b4i - schimanski    Jan 14, 2018 Is there somerhing similar in b4i to skip the certificate verification? I need it for websockets.
Dim ctm As CustomTrustManager
ctm.InitializeAcceptAll
Client.SetCustomSSLTrustManager(ctm)
Thanks for help... B4A Question FTP error - NikB4x (first post)    Feb 17, 2021   (1 reaction) If you can't change the plain text setting try this:
Dim ftp As FTP
dim ctm As CustomTrustManager
ctm.InitializeAcceptAll
ftp.Initialize("FTP", "IP", 21, USER", "PASSWORD")
ftp.PassiveMode = True
FTP.UseSSL = True
FTP.UseSSLExplicit = True
FTP.SetCustomSSLTrustManager(ctm)
If ftp.IsInitialized=Tru B4A Question [solved] WSS - Trust anchor for certification path not found. - Erel (first post)    Jun 18, 2018   (1 reaction) You can use SetCustomSSLTrustManager with CustomTrustManager from the Net library to skip certificate validation.
Most probably no. B4A Question javax.net.ssl.sslpeerUnverifiedexception - Almora (first post)    Jan 29, 2019 I can't test it right now. Does this help me? Sub As JavaObject Dim tm As CustomTrustManager tm.InitializeAcceptAll Dim SSLContext As JavaObject SSLContext = SSLContext.InitializeStatic("javax.net.ssl.SSLContext").RunMethod("getInstance", Array("TLS")) SSLContext.RunMethod("init", A B4J Question 521 PROT P required - FTP - Erel (first post)    Mar 08, 2020 You are testing it with a non-trusted certificate, right? You should test it with the accept all CustomTrustManager. Page: 1   2   3   4   5   6   7   Powered by ColBERT |