Skip to content

Commit 8b672c8

Browse files
committed
Update documentation.
1 parent 32c9dd6 commit 8b672c8

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

docs/content/connection-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ These are the options that need to be used in order to configure a connection to
6464
</thead>
6565
<tr>
6666
<td>SSL Mode, SslMode</td>
67-
<td>None</td>
67+
<td>Preferred</td>
6868
<td>This option has the following values:
6969
<ul>
7070
<li><b>Preferred</b> - this is the default. Use SSL if the server supports it.</li>

docs/content/tutorials/migrating-from-connector-net.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,25 @@ MySqlConnector has some different default connection string options:
2222
<th style="width:20%">Oracle's Connector/NET</th>
2323
<th style="width:40%">Notes</th>
2424
</thead>
25+
<tr>
26+
<td><code>AllowPublicKeyRetrieval</code></td>
27+
<td>Default is <code>false</code></td>
28+
<td>(not configurable)</td>
29+
<td>When using <code>sha256_password</code> authentication, this option allows the RSA public key to be retrieved from the server
30+
(when not using a secure connection). It's <code>false</code> by default to avoid disclosing the password to a malicious proxy.</td>
31+
</tr>
2532
<tr>
2633
<td><code>ConnectionReset</code></td>
2734
<td>Default is <code>true</code></td>
2835
<td>Default is <code>false</code></td>
2936
<td>MySqlConnector takes an extra command to reset pooled connections by default so that the connection is always in a known state</td>
3037
</tr>
38+
<tr>
39+
<td><code>ServerRSAPublicKeyFile</code></td>
40+
<td>(no default)</td>
41+
<td>(not configurable)</td>
42+
<td>Specify the server's RSA public key to allow <code>sha256_password</code> authentication over an insecure connection.</td>
43+
</tr>
3144
<tr>
3245
<td><code>UseAffectedRows</code></td>
3346
<td>Default is <code>true</code></td>
@@ -37,7 +50,7 @@ MySqlConnector has some different default connection string options:
3750
</table>
3851

3952
Some command line options that are supported in Connector/NET are not supported in MySqlConnector. For a full list of options that are
40-
supported in MySqlConnector, see the [Connection Options](connection-options)
53+
supported in MySqlConnector, see the [Connection Options](connection-options).
4154

4255
### TransactionScope
4356

0 commit comments

Comments
 (0)