forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com> Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
82 lines
9.3 KiB
HTML
82 lines
9.3 KiB
HTML
<a name="css_03_0050"></a><a name="css_03_0050"></a>
|
|
|
|
<h1 class="topictitle1">Downloading the Certificate</h1>
|
|
<div id="body1551948818417"><div class="section" id="css_03_0050__section162880126447"><h4 class="sectiontitle">Function</h4><p id="css_03_0050__p19460161254418">This API is used to download the HTTPS certificate of the server.</p>
|
|
</div>
|
|
<div class="section" id="css_03_0050__section1928871264412"><h4 class="sectiontitle">URI</h4><pre class="screen" id="css_03_0050__screen961365211405">GET /v1.0/dev/cluster/sslCert</pre>
|
|
</div>
|
|
<div class="section" id="css_03_0050__section6319121215446"><h4 class="sectiontitle">Request</h4><p id="css_03_0050__p13221114358">None</p>
|
|
</div>
|
|
<div class="section" id="css_03_0050__section769920722712"><h4 class="sectiontitle">Response</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0050__table372832271213" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="css_03_0050__row172822201216"><th align="left" class="cellrowborder" valign="top" width="15.414141414141417%" id="mcps1.3.4.2.2.4.1.1"><p id="css_03_0050__p102799549123">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="11.797979797979798%" id="mcps1.3.4.2.2.4.1.2"><p id="css_03_0050__p1927965418126">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="72.7878787878788%" id="mcps1.3.4.2.2.4.1.3"><p id="css_03_0050__p8279254121216">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0050__row1728172231215"><td class="cellrowborder" valign="top" width="15.414141414141417%" headers="mcps1.3.4.2.2.4.1.1 "><p id="css_03_0050__p656312616454">certBase64</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.797979797979798%" headers="mcps1.3.4.2.2.4.1.2 "><p id="css_03_0050__p1527915415128">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="72.7878787878788%" headers="mcps1.3.4.2.2.4.1.3 "><p id="css_03_0050__p027905411219">This string is obtained after the certificate file is transcoded using Base64. You need to run the following command to parse the string into a certificate file. The generated certificate file is saved in the folder where the command to be executed is located. In the following command, <strong id="css_03_0050__b14404525113511">"$certBase64"</strong> indicates the string returned in the response message. The name of the generated certificate file is <strong id="css_03_0050__b1488792415380"><span class="filepath" id="css_03_0050__filepath1680665763813"><b>CloudSearchService.cert</b></span></strong>. You can specify another name for the certificate file, but must use <span class="filepath" id="css_03_0050__filepath198061102394"><b>.cert</b></span> as the suffix of the name.</p>
|
|
<p id="css_03_0050__p27325578483"><strong id="css_03_0050__b13625121515355">echo -n "$certBase64" | base64 -d ></strong> <strong id="css_03_0050__b174300615312">CloudSearchService.cert</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="css_03_0050__section2082663016185"><h4 class="sectiontitle">Examples</h4><p id="css_03_0050__p68184389183">Example request</p>
|
|
<pre class="screen" id="css_03_0050__screen3795125161817">GET /v1.0/dev/cluster/sslCert</pre>
|
|
<p id="css_03_0050__p4731114161811">Example response</p>
|
|
<pre class="screen" id="css_03_0050__screen1151417498189">{ "certBase64":"MIIDnTCCAoWgAwIBAgIEXXdMtTANBgkqhkiG9w0BAQsFADB/MRAwDgYDVQQGEwdHZXJtYW55MQ0wCwYDVQQIEwROb25lMQ0wCwYDVQQHEwROb25lMRkwFwYDVQQKExBPcGVuVGVsZWtvbUNsb3VkMRUwEwYDVQQLEwxEYXRhQW5hbHlzaXMxGzAZBgNVBAMTEkNsb3VkU2VhcmNoU2VydmljZTAeFw0xODExMTcxODE4NDJaFw0xOTAyMTUxODE4NDJaMH8xEDAOBgNVBAYTB0dlcm1hbnkxDTALBgNVBAgTBE5vbmUxDTALBgNVBAcTBE5vbmUxGTAXBgNVBAoTEE9wZW5UZWxla29tQ2xvdWQxFTATBgNVBAsTDERhdGFBbmFseXNpczEbMBkGA1UEAxMSQ2xvdWRTZWFyY2hTZXJ2aWNlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApHai9+LMoFSlWqI+YodGiFLw597Vuoo7gG3qTCs+szQTn3PTZtbnzy7TNWjn8K41mkBgUY16wtkhH1nu6AmhRLpZA+2fwAz34v/tDOYahPq045bk9S/znJXQeWWeux93I15z7OP/XC68IF2AKl2NXjmm9bAD/DsqaLuJpoE77d71862sD6uRCBQYyZoQaHw+eKuL8/+5PjWvG9mS+Rxp0DcLd1waFkyK4BjB5Ae3og4bAivKo7vQHH79fgnuK0SQnNpxlU8xLIGaKsQ0/yeJrTrlfy3vBQmj949SbCzFjvmXgkbv4I0jcT5Ax1P68tlasUUnCqFTjGTbzeT82CeE6QIDAQABoyEwHzAdBgNVHQ4EFgQUPPZLu9ElUzQgKURRwn8HpzIliEcwDQYJKoZIhvcNAQELBQADggEBAI/e/sGbZ1jB3ao7Car2p7rm1Pg8ro1kSy9o+Jug6XjJpkwITKGkhPYugtGuKgL6oiYkdJhqmfrm/1R7phf1qzBgRoWtR7eCBg4uorNaYvTelAjbIoYGL03D1c5K6e1XwRsdqNWT3TwiHZ5CuiVOsjAtvt3OrvF2YtPUOJpbbvdXlnLKaLHoaklcyyMJ+KmUbkd2XFhzlhwj4eOaloL8XQcAk/urYFFNTymJPnNiEXjLAgGCfE/j8rX26WKvPUGmcuuqBiK7Ob+VfnfpnssDQoBtQsN9eUNxkYkg6eua8U6zR3nSPxXpdn+TZo3HHnUp3x0f1Xev49MHKe/aPMJOTYE="
|
|
}</pre>
|
|
<p id="css_03_0050__p15827125510352">After obtaining the preceding character string, run the following command to obtain the <span class="filepath" id="css_03_0050__filepath1343477103813"><b>CloudSearchService.cert</b></span> certificate file:</p>
|
|
<pre class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3OrvF2YtPUOJpbbvdXlnLKaLHoaklcyyMJ+KmUbkd2XFhzlhwj4eOaloL8XQcAk/urYFFNTymJPnNiEXjLAgGCfE/j8rX26WKvPUGmcuuqBiK7Ob+VfnfpnssDQoBtQsN9eUNxkYkg6eua8U6zR3nSPxXpdn+TZo3HHnUp3x0f1Xev49MHKe/aPMJOTYE=" | base64 -d > CloudSearchService.cert</pre>
|
|
</div>
|
|
<div class="section" id="css_03_0050__section15133145417185"><h4 class="sectiontitle">Status Code</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="css_03_0050__table12321369178" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Status codes</caption><thead align="left"><tr id="css_03_0050__en-us_topic_0000001342030725_row1972183521418"><th align="left" class="cellrowborder" valign="top" width="15.939999999999998%" id="mcps1.3.6.2.2.4.1.1"><p id="css_03_0050__en-us_topic_0000001342030725_p14560134151414">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="31.04%" id="mcps1.3.6.2.2.4.1.2"><p id="css_03_0050__en-us_topic_0000001342030725_p5563194141411">Message</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="53.02%" id="mcps1.3.6.2.2.4.1.3"><p id="css_03_0050__en-us_topic_0000001342030725_p256616411143">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="css_03_0050__en-us_topic_0000001342030725_row129720356144"><td class="cellrowborder" valign="top" width="15.939999999999998%" headers="mcps1.3.6.2.2.4.1.1 "><p id="css_03_0050__en-us_topic_0000001342030725_p1957004131410">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.04%" headers="mcps1.3.6.2.2.4.1.2 "><p id="css_03_0050__en-us_topic_0000001342030725_p165731141171419">BadRequest</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.02%" headers="mcps1.3.6.2.2.4.1.3 "><p id="css_03_0050__en-us_topic_0000001342030725_p65778413148">Invalid request.</p>
|
|
<p id="css_03_0050__en-us_topic_0000001342030725_p1557974171415">Modify the request instead of retrying.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0050__en-us_topic_0000001342030725_row8972103517147"><td class="cellrowborder" valign="top" width="15.939999999999998%" headers="mcps1.3.6.2.2.4.1.1 "><p id="css_03_0050__en-us_topic_0000001342030725_p75841441191410">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.04%" headers="mcps1.3.6.2.2.4.1.2 "><p id="css_03_0050__en-us_topic_0000001342030725_p258716416142">NotFound</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.02%" headers="mcps1.3.6.2.2.4.1.3 "><p id="css_03_0050__en-us_topic_0000001342030725_p15589154118141">The requested resource cannot be found.</p>
|
|
<p id="css_03_0050__en-us_topic_0000001342030725_p14590164151410">Modify the request instead of retrying.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="css_03_0050__en-us_topic_0000001342030725_row297223511416"><td class="cellrowborder" valign="top" width="15.939999999999998%" headers="mcps1.3.6.2.2.4.1.1 "><p id="css_03_0050__en-us_topic_0000001342030725_p13595164131416">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.04%" headers="mcps1.3.6.2.2.4.1.2 "><p id="css_03_0050__en-us_topic_0000001342030725_p9598741131416">OK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.02%" headers="mcps1.3.6.2.2.4.1.3 "><p id="css_03_0050__en-us_topic_0000001342030725_p659994115146">The request is processed.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_03_0008.html">Cluster Management APIs</a></div>
|
|
</div>
|
|
</div>
|
|
|