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

asked 29 May '13, 09:43

Ricardo's gravatar image

Ricardo
16112
accept rate: 0%

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).

(29 May '13, 14:11) Mikel Rychliski

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...

(30 May '13, 13:06) Tim McClements

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.

permanent link

answered 30 May '13, 15:18

Tim%20McClements's gravatar image

Tim McClements
2.0k1830
accept rate: 35%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×371

question asked: 29 May '13, 09:43

question was seen: 1,320 times

last updated: 30 May '13, 15:18