I'm trying to synchronize a client Ultralite database with the server using TLS communication. The .udb file does not have a certificate, but I am referencing a valid certificate using the trusted_certificate parameter. I have tried using the certificate file on the Documents folder and on the application bundle, but none of these have worked. I always get the following error: -1305 Is there anyway to get this working? Thanks |
For version 12, the trusted_certificate parameter must name the bare filename. UL will search for it in the app's resource bundle. (If you include the certificate in your Xcode project, it should be packaged automatically in the resource bundle.) For version 16, if you specify a name which resolves to a file directly (i.e., a full path or a name relative to your working directory), that file will be opened, and otherwise the resource bundle is searched as before. |
What is certificate being referenced in the trusted_certificate parameter? The certificate contained in that file should be the root certificate that signs the MobiLink server certificate (or a root certificate that signs intermediate certificates that sign the MobiLink server certificate).
What version of Ultralite are you using?
It's very handy to have the parameters for error -1305. You can get these by calling ULError's GetString() function...