Postgres service X.509 certificate version
Hi all,
I'm building a Rust app using SQLX and PostgreSQL as backend and have trouble getting it to work with rustls backend. It works find with native-tls using openssl behind the scenes, but it seems to be prefered using the rust native TLS implementation.
The error I get from rustls is:
error: InvalidCertificate(Other(UnsupportedCertVersion))
The following dependencies in Cargo.toml
After some digging, it seems that rustls only support X.509 certificates of version 3, while it seems that the standard Railway Postgres-service use a X.509 certificate with version 1, is there any way of changing this?
This specific database is hosted in project 2de6c365-d738-444e-a12a-37a59bc8df1c but I've seen the same in other projects as well.2 Replies
Project ID:
2de6c365-d738-444e-a12a-37a59bc8df1c
it seems that the standard Railway Postgres-service use a X.509 certificate with version 1, is there any way of changing this?you can fork their repo, modify it as you see fit, and deploy your own postgres database or disable external access (remove the tcp proxy) and connect to the database exclusively over the private network so you don't have to worry about using tls