Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3755

SSL PosgreSQL

$
0
0

Hi,

I am using Supabase to work with posgreSQL. I am opting to set a certificate (SSL) for security. When trying to connect to the db I get the following error: certificate present, but not private key file "/Users/current_user/.postgresql/postgresql.key"

I only have an option to download the cert but Xojo is asking me for a key. Since i do not see that option in supabase for a key, where do i create the key or get it? I tried to look in the docs but did not see anything about a key creation.

I worked on a different project (Supabase) where the key was not required. Did something changed in the new release of Xojo?

Here is my code…

Var f As New FolderItem("my-cert.crt", FolderItem.PathModes.Native)
Var pgre As New PostgreSQLDatabase

pgre.SSLMode = PostgreSQLDatabase.SSLRequire
pgre.SSLCertificate = f
pgre.Host = host.Text
pgre.DatabaseName = DatabaseName.Text
pgre.Port = Port.Text.ToInteger
pgre.UserName = UserName.Text
pgre.Password = Password.Text

pgre.Connect

Thank you for your help

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 3755

Trending Articles