Skip to content

Commit 4a34e4e

Browse files
authored
Merge pull request #110710 from ajlam/updatebranch
address MicrosoftDocs/azure-docs#50552
2 parents 011f204 + 07084e6 commit 4a34e4e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

articles/mariadb/howto-configure-ssl.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,21 @@ client = Mysql2::Client.new(
9595
:username => 'myadmin@mydemoserver',
9696
:password => 'yourpassword',
9797
:database => 'quickstartdb',
98-
:ssl_ca => '/var/www/html/BaltimoreCyberTrustRoot.crt.pem'
98+
:sslca => '/var/www/html/BaltimoreCyberTrustRoot.crt.pem'
99+
:ssl_mode => 'required'
99100
)
100101
```
102+
#### Ruby on Rails
103+
```ruby
104+
default: &default
105+
adapter: mysql2
106+
username: username@mydemoserver
107+
password: yourpassword
108+
host: mydemoserver.mariadb.database.azure.com
109+
sslca: BaltimoreCyberTrustRoot.crt.pem
110+
sslverify: true
111+
```
112+
101113
### Golang
102114
```go
103115
rootCertPool := x509.NewCertPool()

0 commit comments

Comments
 (0)