Yes. But i have a pem file downloaded from AzureSQL. How to get these three files(CA, Client & Key) from this pem.

define('DBSSLCA','/path/to/ca.crt');

define('DBSSLCERT','/path/to/client.crt');

define('DBSSLKEY','/path/to/client.key');

    helpdesksulekha

    You can read online how to get those from Azure. If not there are ways to grab information from the pem file.

    Cheers.

    I have checked the PEM file and found no keys associated with it. the below openssl command helped in checking that.

    openssl storeutl -keys d:\mysql.pem > d:\private.key

      But why this osticket is demanding a certificate with a key? why not use the PEM file or CRT file alone for SSL access?

        Tried that as well The Key file is mandatory it seems. The error throws like this without a key file
        thrown in C:\inetpub\wwwroot\osTicket\bootstrap.php on line 211
        [13-Dec-2023 08:31:00 UTC] PHP Fatal error: Uncaught Error: Undefined constant "DBSSLKEY" in C:\inetpub\wwwroot\osTicket\bootstrap.php:211

          helpdesksulekha

          Go to the mysqli file I linked above, and change:

              if (isset($options['ssl']))
                  $__db->ssl_set(
                          $options['ssl']['key'],
                          $options['ssl']['cert'],
                          $options['ssl']['ca'],
                          null, null);

          ... to:

              if (isset($options['ssl']))
                  $__db->ssl_set(
                          $options['ssl']['key'] ?: null,
                          $options['ssl']['cert'] ?: null,
                          $options['ssl']['ca'] ?: null,
                          null, null);

          .. and retest.

          Cheers.

          [20-Dec-2023 08:01:59 UTC] PHP Fatal error: Uncaught mysqli_sql_exception: Connections using insecure transport are prohibited while --require_secure_transport=ON. in C:\inetpub\wwwroot\osTicket\include\mysqli.php:69
          Stack trace:
          #0 C:\inetpub\wwwroot\osTicket\include\mysqli.php(69): mysqli->real_connect()
          #1 C:\inetpub\wwwroot\osTicket\bootstrap.php(217): db_connect()
          #2 C:\inetpub\wwwroot\osTicket\main.inc.php(28): Bootstrap::connect()
          #3 C:\inetpub\wwwroot\osTicket\client.inc.php(21): require_once('...')
          #4 C:\inetpub\wwwroot\osTicket\index.php(16): require('...')
          #5 {main}
          thrown in C:\inetpub\wwwroot\osTicket\include\mysqli.php on line 69

          Write a Reply...