-3

I upgraded one of my dev environments to PHP 8.1 from 7.4.5. For some reason, an error message appeared:

SQLSTATE[08001]: [Microsoft][ODBC Driver 18 for SQL Server]SSL Provider: The certificate chain was issued by an authority that is not trusted.

but everything is fine with PHP 7.4. Sqlsrv and PDO drivers are up to date.
Does anyone know how to deal with this problem?

Thom A
  • 88,727
  • 11
  • 45
  • 75
Klapsius
  • 3,273
  • 6
  • 33
  • 56
  • https://stackoverflow.com/q/17615260/61305 – Aaron Bertrand Aug 11 '23 at 13:37
  • This is a duplicate of https://stackoverflow.com/questions/71709139/php-to-mssql-server-errro-ssl-provider-the-certificate-chain-was-issued-by-an-a – MikeO Aug 11 '23 at 13:40
  • There are, in fact, *countless* duplicates of this: [site:stackoverflow.com The certificate chain was issued by an authority that is not trusted](https://www.google.co.uk/search?q=site%3Astackoverflow.com+The+certificate+chain+was+issued+by+an+authority+that+is+not+trusted). – Thom A Aug 11 '23 at 13:41
  • 2
    @MikeO true, but the closure duplicate actually has a lot more info, including why it might not be the most secure thing to just blindly trust certs or turn off encryption. – Aaron Bertrand Aug 11 '23 at 13:41
  • @AaronBertrand I agree buddy, definitely a bad idea to turn it off outside of the dev environment. – MikeO Aug 11 '23 at 13:46

0 Answers0