Postgres, Xojo and SSL?

Hi Folks,

I know how to implement SSL on a postgres server, there are tutorials on the net
but I would like to have a concrete example on how to implement the client ssl side in xojo.
where to store the public key on the client app ?
a small code example on how to open a postgres database with ssl ?
how can I know from the client side if the connection is ssl secured or not ?

thanks.