Hi @Moary Chen (CSI Interfusion Inc),
The %APPDATA%\postgresql\root.crt file is created automatically when you install PostgreSQL on your machine
As you said that there is no %APPDATA%\postgresql\root.crt. you can create the path manually.
Here are the steps for creating the path:
1.) Open Notepad.
- Copy and paste the root certificate (Microsoft RSA Root Certificate Authority 2017) contents into Notepad.
- Save the file as root.crt.
2.) Open the Run dialog:
- Press Win + R, type %APPDATA%, and hit Enter.
- Create the PostgreSQL folder (if it doesn't exist):
- Right-click, select New > Folder, and name it postgresql.
3.) Create the Data folder:
- Inside the postgresql folder, right-click, select New > Folder, and name it data.
4.) Move root.crt:
- Place the root.crt file into the %APPDATA%\postgresql\data folder.
Your root.crt is now in %APPDATA%\postgresql\data, and certificate verification will work. I hope this information helps, please do let us know if you have any Queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.