API Module SSL decodeCsrSslCertRequest

From Openprovider API documentation

Jump to: navigation, search

Contents

Module SSL certificates > Decode CSR

Module SSL certificates
Command name decodeCsrSslCertRequest
Use Use this call to decode a CSR
Input
  • csr
Output
  • bits
  • key
  • commonName
  • organization
  • unit
  • locality
  • state
  • country
  • email
  • subjectAlternativeName
  • domainNamesCount

Examples

Using PHP class

$request = new OP_Request;
$request->setCommand('decodeCsrSslCertRequest')
  ->setAuth(array('username' => 'username', 'password' => 'password'))
  ->setArgs(array(
    'csr' => '-----BEGIN CERTIFICATE REQUEST-----
MIIDADCCAegCAQAwgboxCzAJBgNVBAYTAk5MMRUwEwYDVQQIDAxadWlkLUhvbGxh
bmQxEjAQBgNVBACMCVJvdHRlcmRhbTEtMCsGA1UECgwkT3BlbnByb3ZpZGVyIChI
b3N0aW5nIENvbmnlcHRzIEIuVi4pMQwwCgYDVQQLDANJQ1QxHDAaBgNVBAMME3d3
dy5vcGVucHJvdmlkZXIubmwxJTAjBgkqhkiG9w0BCQEWFmRvbXJlZ0BvcGVucHJv
dmlkZXIubmwwgdEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQChHX2breTh
JnSntQv3ZYnIC3FIHK/g8o08tgSJHTMk9tuQdULvdV43+46tq+cII/NAnUkWQfjr
rMof0SRxBvts92CT22R0L0k0CklggEJl7QxAfJu2qbMpMTU/1zQy9vogclh5RZRK
NY1pTC1rf8eMj/plCFioS3i3hzeRpXFbiqDVjzR1mF5o//xgTrf34uL4ar3z8ruA
O4xU8wWk4RZ8Q/nPyxHyoCvyBjvTmik/qJ7jyqxghE2aZl2MX3pGGbmoJoYDwC/T
v4krJfpZ0TrIJxc3Bwnv76/kLtPyHKpZiVWsAkOBoA5zzsPjR7sxyn+7k5ufgeZH
YR5FAIF02i/dAgMBAAGgADANBgkqhkiG9w0BAQUFAAOCAQEAaaonnVpqCfhgq7Cc
1p0J8BMu6TF6bxOzYa7JZNZu7IP167BRpzc4nItlDU0CQWTRjQmQGJq+CulpAgiC
ZOX3PRyIZ7DdIF8vfYX9ZCT7nZXeUA3p+wd9ifbhqHdoEnRv2qOepJwQXlBJFE5z
OJnPIgzNxei/HrqOFM6Z2+4HA6p8Kv6C0pLV/RADPE8FP48VgxHAHn8WWPR8lRUI
mQb5rHJYfiS9ate2vJB2YXEgtaUVG/8oe3ZbXlTFwBbd8Be25agI4quQw3l/7int
RNbG/0pqzKDEyj3mFVPa/1vgMBfqJ42rb2vcZKN7q0wSZ4YNdGwtfdPx4pGqA3Jl
WxwuLA==
-----END CERTIFICATE REQUEST-----',
  ));

Raw XML

Please note that newlines and leading spaces are added only for readability. Those whitespaces should be excluded from your XML command before sending it to Openprovider.

<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <credentials>
    <username>username</username>
    <password>password</password>
  </credentials>
  <decodeCsrSslCertRequest>
    <csr>-----BEGIN CERTIFICATE REQUEST-----
MIIDADCCAegCAQAwgboxCzAJBgNVBAYTAk5MMRUwEwYDVQQIDAxadWlkLUhvbGxh
bmQxEjAQBgNVBACMCVJvdHRlcmRhbTEtMCsGA1UECgwkT3BlbnByb3ZpZGVyIChI
b3N0aW5nIENvbmnlcHRzIEIuVi4pMQwwCgYDVQQLDANJQ1QxHDAaBgNVBAMME3d3
dy5vcGVucHJvdmlkZXIubmwxJTAjBgkqhkiG9w0BCQEWFmRvbXJlZ0BvcGVucHJv
dmlkZXIubmwwgdEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQChHX2breTh
JnSntQv3ZYnIC3FIHK/g8o08tgSJHTMk9tuQdULvdV43+46tq+cII/NAnUkWQfjr
rMof0SRxBvts92CT22R0L0k0CklggEJl7QxAfJu2qbMpMTU/1zQy9vogclh5RZRK
NY1pTC1rf8eMj/plCFioS3i3hzeRpXFbiqDVjzR1mF5o//xgTrf34uL4ar3z8ruA
O4xU8wWk4RZ8Q/nPyxHyoCvyBjvTmik/qJ7jyqxghE2aZl2MX3pGGbmoJoYDwC/T
v4krJfpZ0TrIJxc3Bwnv76/kLtPyHKpZiVWsAkOBoA5zzsPjR7sxyn+7k5ufgeZH
YR5FAIF02i/dAgMBAAGgADANBgkqhkiG9w0BAQUFAAOCAQEAaaonnVpqCfhgq7Cc
1p0J8BMu6TF6bxOzYa7JZNZu7IP167BRpzc4nItlDU0CQWTRjQmQGJq+CulpAgiC
ZOX3PRyIZ7DdIF8vfYX9ZCT7nZXeUA3p+wd9ifbhqHdoEnRv2qOepJwQXlBJFE5z
OJnPIgzNxei/HrqOFM6Z2+4HA6p8Kv6C0pLV/RADPE8FP48VgxHAHn8WWPR8lRUI
mQb5rHJYfiS9ate2vJB2YXEgtaUVG/8oe3ZbXlTFwBbd8Be25agI4quQw3l/7int
RNbG/0pqzKDEyj3mFVPa/1vgMBfqJ42rb2vcZKN7q0wSZ4YNdGwtfdPx4pGqA3Jl
WxwuLA==
-----END CERTIFICATE REQUEST-----</csr>
  </decodeCsrSslCertRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <reply>
    < code>0</code>
    <desc />
    <data>
      <publicKey>
        <bits>2048</bits>
        <key>-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFaAOCAQ8AMIIBCgKCAQEAoR19m63k4SZ0p7UL92WJ
yAtxSByv4PKNPLYEiR0zJPbbkHVC73VeN/uOravnCCPzQJ1JFkH466zKH9EkcQb7
bPdQk9tkdC9JNApJYIBCZe0MQHybtqmzKTE1P9c0Mvb6IHJYeUWUSjWNaUwta3/H
jIv6ZQhYqEt4t4c3kaVxW4qg2Y80dZheaP/8YE639+Li+Gq98/K7gDuMVPMFpOEW
fEP5z8sR8qAr8gY705opP6ies8qsYIRNmmZdjF96Rhm5qCaGA8Av07+JKyX6WdE6
yCcXNwcJ7++v5C7T8hyqWYlVrAJFgaAOc87D40e7Mcp/u5Obn4HmR2EeRQCBdDec
3QIDAQAB
-----END PUBLIC KEY-----</key>
      </publicKey>
      <subject>
        <commonName>www.openprovider.nl</commonName>
        <organization>Openprovider (Hosting Concepts B.V.)</organization>
        <unit>ICT</unit>
        <locality>Rotterdam</locality>
        <state>Zuid-Holland</state>
        <country>NL</country>
        <email>domreg@openprovider.nl</email>
      </subject>
      <subjectAlternativeName />
      <domainNamesCount>1</domainNamesCount>
    </data>
  </reply>
</openXML>
Views
Personal tools