forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
143 lines
22 KiB
HTML
143 lines
22 KiB
HTML
<a name="EN-US_TOPIC_0000001134560524"></a><a name="EN-US_TOPIC_0000001134560524"></a>
|
|
|
|
<h1 class="topictitle1">Establishing Secure TCP/IP Connections in SSL Mode</h1>
|
|
<div id="body8662426"><div class="p" id="EN-US_TOPIC_0000001134560524__p04843473319">If the client or JDBC/ODBC driver needs to use SSL connection, you must configure related SSL connection parameters in the client or application code. The GaussDB(DWS) management console provides the SSL certificate required by the client. The SSL certificate contains the default certificate, private key, root certificate, and private key password encryption file required by the client. Download the SSL certificate to the host where the client resides and specify the path of the certificate on the client.<div class="note" id="EN-US_TOPIC_0000001134560524__n0d349fceeb4d43f29796f1cc1cdf9a65"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001134560524__en-us_topic_0106894569_p272917247717">Using the default certificate may pose security risks. To improve system security, you are advised to periodically change the certificate to prevent password cracking. If you need to replace the certificate, contact the <span id="EN-US_TOPIC_0000001134560524__text2252043123912">database customer service</span>.</p>
|
|
</div></div>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001134560524__p134851259163318">For more information about SSL certificates, see <a href="dws_01_0083.html">(Optional) Downloading the SSL Certificate</a>. The following parts are included in this section:</p>
|
|
<ul id="EN-US_TOPIC_0000001134560524__ul050455816377"><li id="EN-US_TOPIC_0000001134560524__li135041958103713"><a href="#EN-US_TOPIC_0000001134560524__s6d3b0bb119894929810147678d9c67a5">Configuring Digital Certificate Parameters Related to SSL Authentication on the gsql Client</a></li><li id="EN-US_TOPIC_0000001134560524__li20504195853716"><a href="#EN-US_TOPIC_0000001134560524__s3a228fb4ac9c48ec8bc34e812c8879e8">SSL Authentication Modes and Client Parameters</a></li></ul>
|
|
<div class="section" id="EN-US_TOPIC_0000001134560524__s6d3b0bb119894929810147678d9c67a5"><a name="EN-US_TOPIC_0000001134560524__s6d3b0bb119894929810147678d9c67a5"></a><a name="s6d3b0bb119894929810147678d9c67a5"></a><h4 class="sectiontitle">Configuring Digital Certificate Parameters Related to SSL Authentication on the gsql Client</h4><p id="EN-US_TOPIC_0000001134560524__a42f22a2e73da4523bde1d1f584d2804e">After a data warehouse cluster is deployed, the SSL authentication mode is enabled by default. The server certificate, private key, and root certificate have been configured by default. You need to configure the client parameters.</p>
|
|
<ol id="EN-US_TOPIC_0000001134560524__ol14645856164213"><li id="EN-US_TOPIC_0000001134560524__li1091196184312"><span>Log in to the GaussDB(DWS) management console and click <strong id="EN-US_TOPIC_0000001134560524__b17459384103">Connections</strong> to download the SSL certificate.</span><p><p id="EN-US_TOPIC_0000001134560524__p13334416369">For more information about SSL certificates, see <a href="dws_01_0083.html">(Optional) Downloading the SSL Certificate</a>.</p>
|
|
<div class="fignone" id="EN-US_TOPIC_0000001134560524__fig11531101272210"><span class="figcap"><b>Figure 1 </b>Downloading the SSL certificate file</span><br><span><img id="EN-US_TOPIC_0000001134560524__image923821318336" src="figure/en-us_image_0000001134560708.png" width="465.5" height="205.941057" title="Click to enlarge" class="imgResize"></span></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001134560524__li1822323518318"><span>Use a file transfer tool (such as WinSCP) to upload the SSL certificate to the host where the client is installed.</span><p><p id="EN-US_TOPIC_0000001134560524__p18511143903120">For example, save the downloaded certificate <strong id="EN-US_TOPIC_0000001134560524__b14681182864212">dws_ssl_cert.zip</strong> to the <strong id="EN-US_TOPIC_0000001134560524__b116851928164212">/home/dbadmin/dws_ssl/</strong> directory.</p>
|
|
</p></li><li id="EN-US_TOPIC_0000001134560524__li15690655112116"><span>Use an SSH remote connection tool (such as PuTTY) to log in to the host where the gsql client is installed and run the following commands to go to the directory where the SSL certificate is stored and decompress the SSL certificate:</span><p><pre class="screen" id="EN-US_TOPIC_0000001134560524__screen6261755122518">cd /home/dbadmin/dws_ssl/
|
|
unzip dws_ssl_cert.zip</pre>
|
|
</p></li><li id="EN-US_TOPIC_0000001134560524__li888393554419"><span>Run the export command and configure digital certificate parameters related to SSL authentication on the host where the gsql client is installed.</span><p><p id="EN-US_TOPIC_0000001134560524__p373815811264">There are two SSL authentication modes: bidirectional authentication and unidirectional authentication. Different authentication modes require different client environment variables. For details, see <a href="#EN-US_TOPIC_0000001134560524__s3a228fb4ac9c48ec8bc34e812c8879e8">SSL Authentication Modes and Client Parameters</a>.</p>
|
|
<p id="EN-US_TOPIC_0000001134560524__p9912131414507">The following parameters must be configured for bidirectional authentication:</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001134560524__screen391341417503">export PGSSLCERT="<em id="EN-US_TOPIC_0000001134560524__i9912614145010">/home/dbadmin/dws_ssl/sslcert/client.crt</em>"
|
|
export PGSSLKEY="<em id="EN-US_TOPIC_0000001134560524__i19121914125016">/home/dbadmin/<em id="EN-US_TOPIC_0000001134560524__i1629142061216">dws_ssl/sslcert/</em>client.key</em>"
|
|
export PGSSLMODE="<em id="EN-US_TOPIC_0000001134560524__i18912111435019">verify-ca</em>"
|
|
export PGSSLROOTCERT="<em id="EN-US_TOPIC_0000001134560524__i3912121415011">/home/dbadmin/<em id="EN-US_TOPIC_0000001134560524__i79424230126">dws_ssl/sslcert/</em>cacert.pem</em>"</pre>
|
|
<p id="EN-US_TOPIC_0000001134560524__p139131714195011">The following parameters must be configured for unidirectional authentication:</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001134560524__screen1791371419500">export PGSSLMODE="verify-ca"
|
|
export PGSSLROOTCERT="<em id="EN-US_TOPIC_0000001134560524__i1091381414503">/home/dbadmin/<em id="EN-US_TOPIC_0000001134560524__i116989681318">dws_ssl/sslcert/</em>cacert.pem</em>"</pre>
|
|
<div class="notice" id="EN-US_TOPIC_0000001134560524__note129136148502"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="EN-US_TOPIC_0000001134560524__ul16417193122516"><li id="EN-US_TOPIC_0000001134560524__li19417631142514">You are advised to use bidirectional authentication for security purposes.</li><li id="EN-US_TOPIC_0000001134560524__li54171331132517">The environment variables configured for a client must contain the absolute file paths.</li></ul>
|
|
</div></div>
|
|
</p></li><li id="EN-US_TOPIC_0000001134560524__li8731103410475"><span>Change the client private key permissions.</span><p><p id="EN-US_TOPIC_0000001134560524__p77343341471">The permissions on the client's root certificate, private key, certificate, and encrypted private key file must be <strong id="EN-US_TOPIC_0000001134560524__b842352706163636">600</strong>. If the permissions do not meet the requirement, the client cannot connect to the cluster in SSL mode.</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001134560524__screen1773583414716">chmod 600 <em id="EN-US_TOPIC_0000001134560524__i207384345471">client.key</em>
|
|
chmod 600 <em id="EN-US_TOPIC_0000001134560524__i1074316343478">client.crt</em>
|
|
chmod 600 <em id="EN-US_TOPIC_0000001134560524__i1674773418479">client.key.cipher</em>
|
|
chmod 600 <em id="EN-US_TOPIC_0000001134560524__i1775013413475">client.key.rand</em>
|
|
chmod 600 <em id="EN-US_TOPIC_0000001134560524__i1075433412474">cacert.pem</em></pre>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001134560524__s3a228fb4ac9c48ec8bc34e812c8879e8"><a name="EN-US_TOPIC_0000001134560524__s3a228fb4ac9c48ec8bc34e812c8879e8"></a><a name="s3a228fb4ac9c48ec8bc34e812c8879e8"></a><h4 class="sectiontitle">SSL Authentication Modes and Client Parameters</h4><p id="EN-US_TOPIC_0000001134560524__p1281133915919">There are two SSL authentication modes: bidirectional authentication and unidirectional authentication. Table <a href="#EN-US_TOPIC_0000001134560524__table267519441727">Table 1</a> shows the differences between these two modes. You are advised to use bidirectional authentication for security purposes.</p>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001134560524__table267519441727"></a><a name="table267519441727"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001134560524__table267519441727" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Authentication modes</caption><thead align="left"><tr id="EN-US_TOPIC_0000001134560524__row1569712441123"><th align="left" class="cellrowborder" valign="top" width="11.991199119911991%" id="mcps1.3.5.3.2.5.1.1"><p id="EN-US_TOPIC_0000001134560524__p6706134413210"><strong id="EN-US_TOPIC_0000001134560524__b187421811143819">Authentication Mode</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="29.24292429242924%" id="mcps1.3.5.3.2.5.1.2"><p id="EN-US_TOPIC_0000001134560524__p187063441212"><strong id="EN-US_TOPIC_0000001134560524__b84235270619454">Description</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.74187418741874%" id="mcps1.3.5.3.2.5.1.3"><p id="EN-US_TOPIC_0000001134560524__p17149441227"><strong id="EN-US_TOPIC_0000001134560524__b842352706155354">Environment Variables Configured on a Client</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40.02400240024002%" id="mcps1.3.5.3.2.5.1.4"><p id="EN-US_TOPIC_0000001134560524__p371410441425"><strong id="EN-US_TOPIC_0000001134560524__b84235270615542">Maintenance</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001134560524__row167211244327"><td class="cellrowborder" valign="top" width="11.991199119911991%" headers="mcps1.3.5.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001134560524__p20721184419215">Bidirectional authentication (recommended)</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="29.24292429242924%" headers="mcps1.3.5.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001134560524__p1772914441226">The client verifies the server's certificate and the server verifies the client's certificate. The connection can be set up only after the verifications are successful.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.74187418741874%" headers="mcps1.3.5.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001134560524__p872910441723">Set the following environment variables:</p>
|
|
<ul id="EN-US_TOPIC_0000001134560524__ul2072910443216"><li id="EN-US_TOPIC_0000001134560524__li27291844421">PGSSLCERT</li><li id="EN-US_TOPIC_0000001134560524__li167361244529">PGSSLKEY</li><li id="EN-US_TOPIC_0000001134560524__li11736124411213">PGSSLROOTCERT</li><li id="EN-US_TOPIC_0000001134560524__li27456444213">PGSSLMODE</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40.02400240024002%" headers="mcps1.3.5.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001134560524__p1575364414211">This authentication mode is applicable to scenarios that require high data security. When using this mode, you are advised to set the <strong id="EN-US_TOPIC_0000001134560524__b163331714105315">PGSSLMODE</strong> client variable to <strong id="EN-US_TOPIC_0000001134560524__b842352706161133">verify-ca</strong> for network data security purposes.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001134560524__row1475394418216"><td class="cellrowborder" valign="top" width="11.991199119911991%" headers="mcps1.3.5.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001134560524__p67533441527">Unidirectional authentication</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="29.24292429242924%" headers="mcps1.3.5.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001134560524__p27601449217">The client verifies the server's certificate, whereas the server does not verify the client's certificate. The server loads the certificate information and sends it to the client. The client verifies the server's certificate according to the root certificate.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.74187418741874%" headers="mcps1.3.5.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001134560524__p976014441621">Set the following environment variables:</p>
|
|
<ul id="EN-US_TOPIC_0000001134560524__ul117605446218"><li id="EN-US_TOPIC_0000001134560524__li97689441211">PGSSLROOTCERT</li><li id="EN-US_TOPIC_0000001134560524__li117683441820">PGSSLMODE</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40.02400240024002%" headers="mcps1.3.5.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001134560524__p8776154411212">To prevent TCP-based link spoofing, you are advised to use the SSL certificate authentication. In addition to configuring the client root certificate, you are advised to set the <strong id="EN-US_TOPIC_0000001134560524__b874116425412">PGSSLMODE</strong> variable to <strong id="EN-US_TOPIC_0000001134560524__b842352706161335">verify-ca</strong> on the client.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001134560524__af155533bdc9645349cc3900a02ab5a9a">Configure environment variables related to SSL authentication on the client. For details, see <a href="#EN-US_TOPIC_0000001134560524__t8b0644779e4c40009b6fb1ad6a8ea986">Table 2</a>.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001134560524__n6f689cfb4e6f4690803aed89b10c7a01"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001134560524__abaad7e11ef0c4e0b85aa0618539e2b1a">The path of environment variables is set to <em id="EN-US_TOPIC_0000001134560524__aa433ac4b29ab46dbad5d8d5f1427c375">/home/dbadmin</em><strong id="EN-US_TOPIC_0000001134560524__b656752175719">/dws_ssl/</strong> as an example. Replace it with the actual path.</p>
|
|
</div></div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001134560524__t8b0644779e4c40009b6fb1ad6a8ea986"></a><a name="t8b0644779e4c40009b6fb1ad6a8ea986"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001134560524__t8b0644779e4c40009b6fb1ad6a8ea986" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Client parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001134560524__r43822a39dba648828fe49912078f1cb2"><th align="left" class="cellrowborder" valign="top" width="13.059999999999999%" id="mcps1.3.5.6.2.4.1.1"><p id="EN-US_TOPIC_0000001134560524__ad17d7af1c3de4d729bf57312c91e6974"><strong id="EN-US_TOPIC_0000001134560524__b84235270614338">Environment Variable</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="30.5%" id="mcps1.3.5.6.2.4.1.2"><p id="EN-US_TOPIC_0000001134560524__ac380e0ec1bd34540bfbfd4e6cb96972f"><strong id="EN-US_TOPIC_0000001134560524__b958814275910">Description</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.44%" id="mcps1.3.5.6.2.4.1.3"><p id="EN-US_TOPIC_0000001134560524__ac9474bec612d44f08a364a81701c28a1"><strong id="EN-US_TOPIC_0000001134560524__b1780718312591">Value Range</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001134560524__r972797e6e649495cac959b5ec60d1dca"><td class="cellrowborder" valign="top" width="13.059999999999999%" headers="mcps1.3.5.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001134560524__ae1ed5b266db84f2d9556f32663a3be24">PGSSLCERT</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.5%" headers="mcps1.3.5.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001134560524__a01cc006c5316402e8f6a4a9296d2c8bf">Specifies the certificate files for a client, including the public key. Certificates prove the legal identity of the client and the public key is sent to the remote end for data encryption.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.44%" headers="mcps1.3.5.6.2.4.1.3 "><div class="p" id="EN-US_TOPIC_0000001134560524__a156de78bab614d698e120a40cc086b45">The absolute path of the files must be specified, for example:<pre class="screen" id="EN-US_TOPIC_0000001134560524__s24de87000fcf43b0b5531d835b2dae56">export PGSSLCERT='<em id="EN-US_TOPIC_0000001134560524__a2d5b5f13eb5b43aeb17f6a00d3a858d2">/home/dbadmin/dws_ssl/sslcert/client.crt</em>'</pre>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001134560524__acdf675a9057d403c917bc1dcc49806c2">(No default value)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001134560524__rc98ff95b80ef4f88bc66c12fe5410d32"><td class="cellrowborder" valign="top" width="13.059999999999999%" headers="mcps1.3.5.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001134560524__a51893fa2bd9b4568a84f40fb815973aa">PGSSLKEY</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.5%" headers="mcps1.3.5.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001134560524__a9de3b54755c444c1b6c0ae8431197b62">Specifies the client private key file used to decrypt the digital signatures and the data encrypted using the public key.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.44%" headers="mcps1.3.5.6.2.4.1.3 "><div class="p" id="EN-US_TOPIC_0000001134560524__a8da9a9daae1a4ece8be3ad6b44637ec5">The absolute path of the files must be specified, for example:<pre class="screen" id="EN-US_TOPIC_0000001134560524__sc413cfb21de442cd9a16f1129e591f3b">export PGSSLKEY='<em id="EN-US_TOPIC_0000001134560524__aca6668f8e3bb4b87857021cded5fad09">/home/dbadmin/dws_ssl/sslcert/client.key</em>'</pre>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001134560524__a39ee87ea493d4270b5f44b92d991148d">(No default value)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001134560524__r85fe97858f3943ecae36f9597d96a226"><td class="cellrowborder" valign="top" width="13.059999999999999%" headers="mcps1.3.5.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001134560524__a28fb67e3d7874c55a98063af0ad3f8ef">PGSSLMODE</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.5%" headers="mcps1.3.5.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001134560524__abee299539baa4dfcbbdced408c233f87">Specifies whether to negotiate with the server about SSL connection and specifies the priority of the SSL connection.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.44%" headers="mcps1.3.5.6.2.4.1.3 "><p id="EN-US_TOPIC_0000001134560524__a5d279ea1261e4998a2d42805bf535ad3">Values and meanings:</p>
|
|
<ul id="EN-US_TOPIC_0000001134560524__u48e2dabb7bdc47eea753bf8035b63f2a"><li id="EN-US_TOPIC_0000001134560524__lfb6ceaf39a16492387ecb32aa1bf302f"><strong id="EN-US_TOPIC_0000001134560524__b84235270616196">disable</strong>: only tries to establish a non-SSL connection.</li><li id="EN-US_TOPIC_0000001134560524__l214ac3831bcf476f8228e4303583a5ac"><strong id="EN-US_TOPIC_0000001134560524__b842352706161935">allow</strong>: tries to establish a non-SSL connection first, and then an SSL connection if the first attempt fails.</li><li id="EN-US_TOPIC_0000001134560524__l8f11f98581d848a8bec51851842f80bd"><strong id="EN-US_TOPIC_0000001134560524__b842352706162016">prefer</strong>: tries to establish an SSL connection first, and then a non-SSL connection if the first attempt fails.</li><li id="EN-US_TOPIC_0000001134560524__l8b27ebed09934913b7d28b89ed9dbd21"><strong id="EN-US_TOPIC_0000001134560524__b842352706162047">require</strong>: only tries to establish an SSL connection. If there is a CA file, perform the verification according to the scenario in which the parameter is set to <strong id="EN-US_TOPIC_0000001134560524__b842352706162118">verify-ca</strong>.</li><li id="EN-US_TOPIC_0000001134560524__lc29ad9f05d504a389e33c08a00746416"><strong id="EN-US_TOPIC_0000001134560524__b842352706162135">verify-ca</strong>: tries to establish an SSL connection and check whether the server certificate is issued by a trusted CA.</li><li id="EN-US_TOPIC_0000001134560524__l9255c744f4934d57bdeb2218909c431a"><strong id="EN-US_TOPIC_0000001134560524__b922295117459">verify-full</strong>: GaussDB(DWS) does not support this mode.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001134560524__aa440c62ceb0e49b396c7289c5149fd58">Default value: <strong id="EN-US_TOPIC_0000001134560524__b842352706162329">prefer</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001134560524__r705a9febfc4e4eca8059bc5b91dc733f"><td class="cellrowborder" valign="top" width="13.059999999999999%" headers="mcps1.3.5.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001134560524__a86405aec64294a4c8feaf5fa7155363d">PGSSLROOTCERT</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.5%" headers="mcps1.3.5.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001134560524__a6a09560a39d14ed8b4755dce027303d3">Specifies the root certificate file for issuing client certificates. The root certificate is used to verify the server certificate.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.44%" headers="mcps1.3.5.6.2.4.1.3 "><div class="p" id="EN-US_TOPIC_0000001134560524__a8bffd67e95b24511b2c9c6ba23949e26">The absolute path of the files must be specified, for example:<pre class="screen" id="EN-US_TOPIC_0000001134560524__s52013b02b46c4f7dac1fcadc8e5caa0e">export PGSSLROOTCERT='<em id="EN-US_TOPIC_0000001134560524__a6a6171cbc744465188da02c71fa55f68">/home<em id="EN-US_TOPIC_0000001134560524__a2658be24cedf49d789f052315ae826e7">/dbadmin</em>/dws_ssl/sslcert/certca.pem</em>'</pre>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001134560524__a19a2340265474308a47f45edbba76799">Default value: null</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001134560524__r8204337653ba459d96d1ed621f76bf9a"><td class="cellrowborder" valign="top" width="13.059999999999999%" headers="mcps1.3.5.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001134560524__a77efe9c8ef7c4214accae3549749a432">PGSSLCRL</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30.5%" headers="mcps1.3.5.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001134560524__a502b2159a2984570942c2b09a82420a9">Specifies the certificate revocation list file, which is used to check whether a server certificate is in the list. If the certificate is in the list, it is invalid.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.44%" headers="mcps1.3.5.6.2.4.1.3 "><div class="p" id="EN-US_TOPIC_0000001134560524__a09da1ca77fee42e6b12a1fcb99a1bd79">The absolute path of the files must be specified, for example:<pre class="screen" id="EN-US_TOPIC_0000001134560524__s1f366c2716294b6aa3001bcefdf49a8c">export PGSSLCRL='<em id="EN-US_TOPIC_0000001134560524__af59ff6d8b5df42e19f48cd38e33e6d8f">/home/dbadmin/dws_ssl/sslcert/sslcrl-file.crl</em>'</pre>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001134560524__a2d42b29a92c1423b8d72964822e22bbd">Default value: null</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_01_0093.html">Using the gsql CLI Client to Connect to a Cluster</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |