iOS Question download error - certificate to this server is not valid

voxel

Member
Licensed User
Hello,

I have this download error only on ios12 (I have no problem with ios15), do you know the reason? Is there a solution? Thank you for your help.

ResponseError: The access certificate to this server is not valid. You may be connecting to a server that claims to be "lyzo.fr", which could compromise your confidential data., status code: 0
 
Solution
Hello,
Here is an extract of the code (I think the problem comes since my certificate was renewed)

B4X:
            Dim telecharge As HttpJob
            telecharge.Initialize("",Me)
            telecharge.Download(urlidbdd)
           
            Wait For (telecharge) JobDone(telecharge As HttpJob)

            If telecharge.Success Then
                Dim out As OutputStream = File.OpenOutput(File.DirLibrary, "bddid.txt", False)
                File.Copy2(telecharge.GetInputStream, out)
                out.Close
            Else
                hd.ToastMessageShow("Erreur de téléchargement", False)  
                Log(telecharge.ErrorMessage)
            End If
            telecharge.Release

Maybe this will help...

aminoacid

Active Member
Licensed User
Longtime User
Hello,

I have this download error only on ios12 (I have no problem with ios15), do you know the reason? Is there a solution? Thank you for your help.

ResponseError: The access certificate to this server is not valid. You may be connecting to a server that claims to be "lyzo.fr", which could compromise your confidential data., status code: 0

Could you post the code the generates the error?
 
Upvote 0

voxel

Member
Licensed User
Hello,
Here is an extract of the code (I think the problem comes since my certificate was renewed)

B4X:
            Dim telecharge As HttpJob
            telecharge.Initialize("",Me)
            telecharge.Download(urlidbdd)
            
            Wait For (telecharge) JobDone(telecharge As HttpJob)

            If telecharge.Success Then
                Dim out As OutputStream = File.OpenOutput(File.DirLibrary, "bddid.txt", False)
                File.Copy2(telecharge.GetInputStream, out)
                out.Close
            Else
                hd.ToastMessageShow("Erreur de téléchargement", False)   
                Log(telecharge.ErrorMessage)
            End If
            telecharge.Release
 
Upvote 0

aminoacid

Active Member
Licensed User
Longtime User
Hello,
Here is an extract of the code (I think the problem comes since my certificate was renewed)

B4X:
            Dim telecharge As HttpJob
            telecharge.Initialize("",Me)
            telecharge.Download(urlidbdd)
           
            Wait For (telecharge) JobDone(telecharge As HttpJob)

            If telecharge.Success Then
                Dim out As OutputStream = File.OpenOutput(File.DirLibrary, "bddid.txt", False)
                File.Copy2(telecharge.GetInputStream, out)
                out.Close
            Else
                hd.ToastMessageShow("Erreur de téléchargement", False)  
                Log(telecharge.ErrorMessage)
            End If
            telecharge.Release

Maybe this will help:

 
Upvote 2
Solution

voxel

Member
Licensed User
Maybe this will help:


Thank for this link

I added this conditional symbol (Ctrl+B): HU2_ACCEPTALL and it works.
 
Upvote 0
Top