Reissue certificate

				
					StructOperationResponse sslReIssue(string idSession, string IDSSL, StructCSR CSRInfo, string validation)
			

Reissue a SSL certificate.

REQUIRED


  • IDSession string (32)
    ID of the Session.
  • IDSSL string
    SSL certificate ID (SSL-XX000-XX)
  • CSRInfo object (StructCSR)
    StructCSR object containing informations about the CSR.
  • validation string

    Validation method of the CSR

    • by email
      Provide for one email: “email:admin@yourdomain.com”
      Provide for several ones: “email:postmaster@yourdomain.com,webmaster@yourdomain.com”
    • by file,
      Provide “file”
    • by dns
      Provide “dns”


An Object of type StructOperationResponse

  • Common names can’t be changed while reissuing a certificate.
  • CSRInfo must contain a StructCSR object which either contains the CSR and only the CSR if it is already generated or every other informations requested in purpose to generate one.
  • In the case of a validation by file, the validation parameter must be equal to “file”.
  • In the case of a validation by email, an email address must be provided for each different domains contained in the common names and alternative names properties of the StructCSR object.
  • Each email address must match one of the following addresses: admin@yourdomain.com, administrator@yourdomain.com, hostmaster@yourdomain.com, webmaster@yourdomain.com or postmaster@yourdomain.com.
  • If several addresses are provided, they must be separated by comas.
    For instance, if the CSR would contain yourdomain.com and yourdomain.fr, validation could be equal to “email:admin@yourdomain.com,postmaster@yourdomain.fr”;
<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
$IDSSL = 'SSL-XX000-XX';
$validation = 'email:admin@website.com';
 
$CSRInfo1 = array();
$CSRInfo1['Country'] = 'country';
$CSRInfo1['City'] = 'city';
$CSRInfo1['Region'] = 'region';
$CSRInfo1['Organisation'] = 'organisation';
$CSRInfo1['Department'] = '';
$CSRInfo1['EmailAddress'] = 'email';
$CSRInfo1['CommonName'] = array('www.website.com');
$CSRInfo1['AlternativeNames'] = array();
 
$CSRInfo2 = array();
$CSRInfo2['CSR'] = 'CERTIFICATE REQUEST';
 
try 
{ 
      $idSession = $clientSOAP->sessionOpen("XX000", "xxxxxxxx");
 
      //reissue with a CSR
      $StructOperationResponse1 = $clientSOAP->sslReIssue($idSession, $IDSSL, $CSRInfo1, $validation);
 
      //reissue without a CSR
      $StructOperationResponse2 = $clientSOAP->sslReIssue($idSession, $IDSSL, $CSRInfo2, $validation);
 
      print_r("<pre>");
      print_r($StructOperationResponse1);
      print_r("</pre>");
 
      print_r("<pre>");
      print_r($StructOperationResponse2);
      print_r("</pre>");
} 
catch(SoapFault $fault) 
{ 
      echo "Exception : " .$fault->getMessage(). "\n"; 
} 
 
if(isset($idSession)) 
{ 
      $clientSOAP->sessionClose($idSession); 
} 
?>