Forum Discussion

jbrave's avatar
jbrave
Channel Surfer
15 years ago

SSL and untrusted certs

I'm having trouble retrieving images in a posterscreen from an SSL server. If I try to load the URL in Firefox, I get an "This Connection is Untrusted" message. For loading data from the website, I got around this with

enableHostVerification(false)


How can I accept the self signed cert of this server the way I do in firefox?

- Joel

5 Replies

  • You must include the CA cert in a PEM file in your package and pass it to the ifHttpAgent interface SetCertificatesFile() on the poster screen.

    --Kevin
  • jbrave's avatar
    jbrave
    Channel Surfer
    Is there a way to download the .pem file from the server (since every user will be running his/her own server) and install it using rourltransfer?

    - Joel
  • That's not advisable.... you'd be violating user's faith in your app. You should find a solution that sets up proper chains of trust. If you use the same CA cert to sign different server's certs you only need to include the CA cert in the channel.

    --Kevin
  • jbrave's avatar
    jbrave
    Channel Surfer
    Ok, so what is the procedure for downloading the cert from the website? I just tried exporting the cert from firefox as a .pem and using that, both as "X.509 certificate" and "X.509 Certificate with Chain", then renaming the resulting file from *.server.org" to server.pem

    So far, this isn't working.

    Any suggestions?

    - Joel