HostFact API versie 3.1
SSL certificaten
SSL certificaten zijn te beheren via de controller 'ssl'.
download
Middels deze functie kunt u een SSL certificaat downloaden.
Voorbeeldbestand: /voorbeelden/ssl/ssl.download.php
Invoerparameters:
Veldnaam | Waarde | Omschrijving |
---|---|---|
Identifier | int | De unieke ID van een SSL certificaat |
CommonName | string | De domeinnaam |
Voorbeeld invoer:
<?php require_once("../hostfact_api.php"); $api = new HostFactAPI(); $sslParams = array( 'Identifier' => '1', //'CommonName' => 'example.com', ); $response = $api->sendRequest('ssl', 'download', $sslParams); print_r_pre($response); ?>
Voorbeeld uitvoer:
Array ( [controller] => ssl [action] => download [status] => success [date] => 2022-11-24T12:00:00+02:00 [ssl] => Array ( [Filename] => example.com.cer [Base64] => dGhpcy13aW...ZpY2F0ZQ== ) )