Create SSL certificate

				
					StructOperationResponse WebHostingSSLCertCreate(string $IDsession, string $id, string $sslName, string $crt, string $key, string $ca, [string $csr])
			

Create a SSL certificate.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • sslName string
    Name of the certificate.
  • crt string
    Certificate string.
  • key string
    Private key string.
  • ca string
    Certificate Authority string.
OPTIONAL

  • csr string
    Certificate Signing Request string.

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
 
    $idSession = $clientSOAP->sessionOpen("XX000", "XX000", "EN"); 
    $clientSOAP->WebHostingSSLCertCreate($idSession, "NW1024", "netim.net-SSL", "-----BEGIN CERTIFICATE----- ..........", "-----BEGIN PRIVATE KEY----- ..........", "-----BEGIN CERTIFICATE----- .........."); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}