Skip to content

Commit 07084e6

Browse files
committed
fix MicrosoftDocs/azure-docs#50552
1 parent 77968f2 commit 07084e6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

articles/mariadb/howto-configure-ssl.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,20 @@ client = Mysql2::Client.new(
9696
:password => 'yourpassword',
9797
:database => 'quickstartdb',
9898
: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)