Skip to content

Commit

Permalink
start rotate
Browse files Browse the repository at this point in the history
Signed-off-by: Neaj Morshad <neaj@appscode.com>
  • Loading branch information
Neaj-Morshad-101 committed Nov 15, 2024
1 parent 2f6edf8 commit 687be2e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions docs/guides/mssqlserver/reconfigure-tls/reconfigure-tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,23 +487,22 @@ mssql@ms-standalone-0:/$ /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P l2mGQ
We can verify from the above output that TLS is enabled for this database, `mssql.conf` file has tls configurations. So, TLS is enabled successfully to this database.





start from here. ....


## Rotate Certificate

Now we are going to rotate the certificate of this database. First let's check the current expiration date of the certificate.
```bash
$ kubectl exec -it ms-standalone-2 -n demo bash
root@ms-standalone-2:/# openssl x509 -in /var/run/mssqlserver/tls/client.pem -inform PEM -enddate -nameopt RFC2253 -noout
notAfter=Jun 9 13:32:20 2021 GMT
$ kubectl exec -it ms-standalone-0 -n demo -c mssql -- bash
mssql@ms-standalone-0:/$ openssl x509 -in /var/opt/mssql/tls/client.crt -inform PEM -enddate -nameopt RFC2253 -noout
notAfter=Feb 13 12:28:39 2025 GMT
mssql@ms-standalone-0:/$
```
So, the certificate will expire on this time `Jun 9 13:32:20 2021 GMT`.
So, the certificate will expire on this time `Feb 13 12:28:39 2025 GMT`.
-start from here. ....
### Create MSSQLServerOpsRequest
Expand Down

0 comments on commit 687be2e

Please sign in to comment.