Hi guys,
I was working through one of my development projects and hit an obstacle with regards to using connection strings for .NET core to database managed instance. Is there any recommended solutions for direct connection to digital ocean DB cluster instance without PEM cert and key or alternatively, adding the cert and key into the application instead?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi!
I use a class like the following for connection to the database. If you want you can add the certificate to your application. Otherwise you must set the Field TrustServerSideCertificate to true