Help Needed: VS Code Azure Extension Resolving "Self Signed Certificate in Certificate Chain" Error with Azure PostgreSQL Flexible Server
I'm facing an issue with the Azure Database version 0.25.3 Extension and the PostgreSQL Flexible Server where I receive the error "self signed certificate in certificate chain" when trying to expand the PostgreSQL database node. Connection to the server is successful, but the database connection fails. Here's a summary of the steps I've taken to resolve this issue:
- Downloaded and Installed Root CA Certificate:
- Downloaded the DigiCert Global Root CA certificate from DigiCert.
- Converted the certificate to PEM format if necessary.
- Placed the root CA certificate in the
%APPDATA%\postgresql
directory.
- Checked Server Configuration:
- Ensured SSL is enforced on the Azure PostgreSQL server via the Azure portal under "Connection security" settings.
- Tried copying and setting environment params:
md c:\ProgramData\SSL\certs copy ".\Microsoft RSA Root Certificate Authority 2017.crt" "C:\ProgramData\SSL\certs\" copy ".\*.pem" "C:\ProgramData\SSL\certs\" copy ".\*.crt" "C:\ProgramData\SSL\certs\" cd "C:\ProgramData\SSL\certs\" ren '.\Microsoft RSA Root Certificate Authority 2017.crt' '.\Microsoft_RSA_Root_Certificate_Authority_2017.crt' setx NODE_EXTRA_CA_CERTS "C:\ProgramData\SSL\certs\Microsoft_RSA_Root_Certificate_Authority_2017.crt" $env:NODE_EXTRA_CA_CERTS = "C:\ProgramData\SSL\certs\Microsoft_RSA_Root_Certificate_Authority_2017.crt"
Despite these steps, I continue to receive the "self signed certificate in certificate chain" error when expanding the PostgreSQL database node. Any insights or additional troubleshooting steps would be greatly appreciated!
Thank you in advance for your help!