API Commands
[All Commands]

Order: Certificate_Request



order type Certificate_Request


Create a new certificate.

After Certificate_Request call command Get_Certificate.

Input Parameters ($params):

int period Period for certificate registration (required)
array contacts
contact admin Administrative contact
array params Any others params
string approver_email Approver email address must be on domain for which you order the certificate. (admin/administrator/hostmaster/webmaster/postmaster)
string ssl_type Type of certificate (rapidssl/rapidsslwc)
string webserver_type Webserver Type (apache2/iis/other)
string hash_algorithm Hash algorithm Type (SHA-1/SHA2-256)
string csr Certificate request

Sample:


<?

$client 
= new SoapClient(
    
null
    array(
        
"location" => "https://PRODUCTION/cmd.php",
        
"uri"      => "http://PRODUCTION/soap"
    
)
);

$params = array ( 
    
"data" => array (
        
"login"    => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);

$token $response["data"]["ssid"];


$params = array (
    
"data" => array (
        
"ssid" => $token,
        
"order" => array(
            
"domain" => "domain.or.af",
            
"type"   => "Certificate_Request",
            
"params" => array(
                
"contacts" => array (
                    
"admin" => array (
                        
"id" => "G-000001"
                    
)
                ),
                
"period" => 1,
                
"params" => array(
                    
"approver_email" => "admin",
                    
"ssl_type"       => "rapidssl",
                    
"webserver_type" => "apache2",
                    
"hash_algorithm" => "SHA2-256",
                    
"csr"            => "-----BEGIN CERTIFICATE-----
                                         .......
                                         -----END CERTIFICATE----"
                
)
            )
        )
    )
);

$response $client->__call("Make_Order"$params);

?>
OUTPUT: [status] => ok [data] => Array ( [orderid] => 24 )

API Manual - version from 2017-03-07 10:42:19