Please use the new documentation

This page is still here for now, but it will no longer be available from 31-Dec-2026. All content has moved to the new API documentation, which covers current features and new updates.

Go to the new documentation

API Module SSL createSslCertRequest

From Openprovider API documentation

Jump to: navigation, search

Contents

Module SSL certificates > Create Order

Module SSL certificates
Command name createSslCertRequest
Use Use this call to order a new SSL certificate
Input
  • productId
  • period
  • csr
  • softwareId (linux or windows)
  • hostNames
  • organizationHandle
  • technicalHandle
  • approverEmail
  • signatureHashAlgorithm (sha1 or sha2 (default) for all certificate types. sha256-ecc-full or sha256-ecc-hybrid for Secure Site Pro and Secure Site Pro with EV certificates.)
  • domainValidationMethods
  • startProvision (0 (order won't be sent to CA, will be in status PAI. To request it use method modifySslCertRequest) or 1 (default, order will be requested in CA))
  • autorenew (on or off (default))
Parameters that must be sent with startProvision = 0
  • domainAmount (amount of domains to buy)
  • wildcardDomainAmount (amount of wildcard domains to buy)
Output
  • id

Examples

Using PHP class

$request = new OP_Request;
$request->setCommand('createSslCertRequest')
  ->setAuth(array('username' => 'username', 'password' => 'password'))
  ->setArgs(array(
    'productId' => 5,
    'period' => 2,
    'csr' => '-----BEGIN CERTIFICATE REQUEST-----

MIIC1TCCAb0CAQAwgZExCzAJBgNVBAYMAk5MMRUwEwYDVQQIDAxadWlkLUhvbGxh bmQxEjAQBgNVBAcMCVJvdHRlcmRhbTEVMBMGA1UECgwMT3BlbnByb3ZpZGVyMQsw CQYDVQQLDAJJVDETMBEGA1UEAwwKZG9tYWluLmNvbTEeMBwGCSqGSIb3DQEJAQwP aW5mb0Bkb21haW4uY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA rdN8Ta644jvOk4neNzu09A7BiopEzAQ3u0zojrmo6cnbguoSAGrGnnnZEFsgH/07 xCwAEJwzD7/7yNbpJNha6c0xToq4JERyeNn4SKiZmUrOHT65ntgeWXrhnkE59+N2 bVR0Ycaeuvs06Kg4ao5CTmLKS7LX5SCXS0aBX7tLnboWBxEOoYpAS1DkW4MKEiz1 0WURE+H0IAqkD8CO6yBz20bU94YkUeN4dZVjqLuuyZbVIGbyfr/fvtvb/Iql7Irc WgaJXg9+3iiq+zWgjEXcdLTp/aPIp0rj3kXOSkWglS6pK/LGIInSIXSH6TfsVYBK YCbD8W+P7rj663GVrpyyBwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQCjXI6MY3W8 KNTbdmRwhCp8ZTUvU92h1+vnHapXJt2sCVBnxTP2SyoGZ+PIQt6iiwoxrw9ixGvh yAzh6iAZT1lUNSe/iJmoDR7wr7tiq4+RL7yJQ3mRE7bBJDsyQ9IbLYza6usfKKO5 4qUtmtepvjpB1pw9aVT5uVUR+xBveIbLwDqyxLSwUcx+y/mPaAVR3PQxs4itXorj FEKnvCu6TL/xNIskQQPJXarEh2lBRg/wfJWRG/OemHrMsXKQ98uBT4MFaDR3hclQ ngqehHVrafmBtG+vQaTmHb9dWCW4IlluHj9lYBJ5h7igxGJR3cBQ9Srtl4zQdTFV cGo2g5Bg83cA


END CERTIFICATE REQUEST-----',
    'softwareId' => 'linux',
    'organizationHandle' => 'GA003358-NL',
    'technicalHandle' => 'GA003358-NL',
    'approverEmail' => 'info@openprovider.nl'
   ));

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>
  <createSslCertRequest>
    <productId>5</productId>
    <period>2</period>
    <csr>-----BEGIN CERTIFICATE REQUEST---
    AwgZExCzAJBgNVBAYMAk5MMRUwEwYDVQQIDAxadWlkLUhvbGxh
    bmQxEjAQBgNVBAcMCVJvdHRlcmRhbTEVMBMGA1UECgwMT3BlbnByb3ZpZGVyMQsw
    --trim-
    4qUtmtepvjpB1pw9aVT5uVUR+xBveIbLwDqyxLSwUcx+y/mPaAVR3PQxs4itXorj
    FEKnvCu6TL/xNIskQQPJXarEh2lBRg/wfJWRG/OemHrMsXKQ98uBT4MFaDR3hclQ
    ngqehHVrafmBtG+vQaTmHb9dWCW4IlluHj9lYBJ5h7igxGJR3cBQ9Srtl4zQdTFV
     cGo2g5Bg83cA
     -----END CERTIFICATE REQUEST-----</csr>
    <softwareId>linux</softwareId>
    <organizationHandle>GA003358-NL</organizationHandle>
    <technicalHandle>GA003358-NL</technicalHandle>
    <approverEmail>info@openprovider.nl</approverEmail>
  </createSslCertRequest>
</openXML>
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
  <reply>
    < code>0</code>
    <desc />
    <data>
      <id>2480</id>
    </data>
  </reply>
</openXML>
Views
Personal tools