API Module SSL generateCsrSslCertRequest
From Openprovider API documentation
(Difference between revisions)
(Created page with '==Module SSL certificates > Decode CSR== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |SSL certificates |- style="background-color:#EEEEEE;" |…') |
(→Raw XML) |
||
Line 67: | Line 67: | ||
<command>openssl req -new -newkey rsa:2048 -nodes -out your.csr -keyout your.private.key -subj "/C=US/ST=/L=/O=/OU=/CN=test.com/emailAddress=""</command> | <command>openssl req -new -newkey rsa:2048 -nodes -out your.csr -keyout your.private.key -subj "/C=US/ST=/L=/O=/OU=/CN=test.com/emailAddress=""</command> | ||
<key>-----BEGIN PRIVATE KEY-----BASE64PRIVATEKEYHERE-----END PRIVATE KEY-----</key> | <key>-----BEGIN PRIVATE KEY-----BASE64PRIVATEKEYHERE-----END PRIVATE KEY-----</key> | ||
- | <csr>-----BEGIN | + | <csr>-----BEGIN CERTIFICATE REQUEST-----BASE64CSRHERE-----END CERTIFICATE REQUEST-----</csr> |
</data> | </data> | ||
</reply> | </reply> | ||
</openXML> | </openXML> |
Revision as of 12:43, 12 October 2016
Contents |
Module SSL certificates > Decode CSR
Module | SSL certificates |
Command name | generateCsrSslCertRequest |
Use | Use this call to generate a CSR |
Input |
|
Output |
|
Examples
Using PHP class
$request = new OP_Request; $request->setCommand('generateCsrSslCertRequest') ->setAuth(array('username' => 'username', 'password' => 'password')) ->setArgs(array( 'bits' => '2048', 'commonName' => 'test.com', 'country' => 'US', ));
Raw XML
Please note that newlines and leading spaces are added only for readability. Those whitespaces should be excluded from your 217.77.131.11 [2014-01-17 13:33:50] REQUEST:
<?xml version="1.0" encoding="UTF-8"?> <openXML> <credentials> <username>username</username> <password>password</password> </credentials> <generateCsrSslCertRequest> <bits>2048</bits> <commonName>test.com</commonName> <country>US</country> </generateCsrSslCertRequest> </openXML>
<?xml version="1.0" encoding="UTF-8"?> <openXML> <reply> < code>0</code> <desc /> <data> <command>openssl req -new -newkey rsa:2048 -nodes -out your.csr -keyout your.private.key -subj "/C=US/ST=/L=/O=/OU=/CN=test.com/emailAddress=""</command> <key>-----BEGIN PRIVATE KEY-----BASE64PRIVATEKEYHERE-----END PRIVATE KEY-----</key> <csr>-----BEGIN CERTIFICATE REQUEST-----BASE64CSRHERE-----END CERTIFICATE REQUEST-----</csr> </data> </reply> </openXML>