OpenSSLConnection is available on the mobile platform.
The problem is most likely that when creating an OpenSSLConnection, we also need to specify the Client certificate for the connection.
Syntax: New OpenSSLSecureConnection(<ClientCertificate>, <CertificationAuthorityCertificates>)
Description: <ClientCertificate> If the source of the client certificate is not specified, you can connect only to the servers that do not require the client certificate.
Does the site you want to connect to open in a browser on a mobile device?
Rating:
1
Joined: Oct 16, 2018
Company: Royal Ceramic Group
Hi, Aleksandr Biryukov
I also have this function to create secure connection:
Function CreateSecureConnection(ClientCertificate = Undefined, CertificationAuthorityCertificates = Undefined) Export
#If WebClient Then Return Undefined; #ElsIf MobileClient Then Return New OpenSSLSecureConnection(New OSClientCertificate, New OSCertificationAuthorityCertificates); #Else Return New OpenSSLSecureConnection(ClientCertificate, CertificationAuthorityCertificates); #EndIf
EndFunction
But I can run mobile app on pc for test, it does not run when I build apk for Android or XCode project for iOS. On Android, I install apk file to BlueStack Simmulate device On iOS, I upload to TestFlight for test.
Rating:
1
Joined: Oct 16, 2018
Company: Royal Ceramic Group
Hello Aleksandr Biryukov,
I explain about this scenario: 1. I'm writing a Mobile app to check inventory for sale. 2. To determine the selling price, it is necessary to check the price at another website. 3. This website uses a secure SSL connection and requires an account to access. 4. I run a test on my PC to check that the connection to this website is OK. 5. But when I build the apk file to run on Android, it can't connect. Report Response Status = 403.
The most likely reason that the connection is not created is that the application does not receive a client certificate from the server. If in Windows this happens by itself, then in Android it does not always happen automatically.
Therefore, to solve the problem when creating a connection, we need to specify the path to the local user certificate. But before that, this certificate must be obtained from the server.
That's why I asked - do you have access to the server? Or is it not your server?
And one more thing - if this is your server, then to rule out other errors, I would first make a test connection without SSL to check if everything works.