HostFact API versie 3.1



SSL certificaten

SSL certificaten zijn te beheren via de controller 'ssl'.



renew

Middels deze functie kunt u een SSL certificaat verlengen.
Voorbeeldbestand: /voorbeelden/ssl/ssl.renew.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een SSL certificaat
CommonName string De domeinnaam
Period int Periode in jaren
CSR string CSR, geef deze niet mee als je de huidige CSR wilt blijven gebruiken.
Subscription array Abonnement:
- Description text     Omschrijving
- PriceExcl float     Prijs per stuk (excl. BTW)
- StartPeriod date     Startdatum van de periode
Verplichte velden: Identifier of CommonName

Voorbeeld invoer:
<?php

require_once("../hostfact_api.php");

$api = new HostFactAPI();

$sslParams = array(
				'CommonName'		=> 'example.com',
                'Period'		    => '1',
                'Subscription'		=> array(
                                'Description'	=> 'SSL testproduct - example.com',
								'StartPeriod'	=> '2016-05-01',
                                'PriceExcl'     => '11.5'
								)
				 
);

$response = $api->sendRequest('ssl', 'renew', $sslParams);

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => ssl
    [action] => renew
    [status] => success
    [date] => 2022-11-24T12:00:00+02:00
    [success] => Array
        (
            [0] => SSL certificaat example.com is verlengd onder bestelnummer 789
        )

    [ssl] => Array
        (
            [Identifier] => 1
            [CommonName] => example.com
            [Debtor] => 1
            [DebtorCode] => DB0001
            [Registrar] => 1
            [SSLTypeID] => 1
            [OwnerHandle] => 1
            [AdminHandle] => 1
            [TechHandle] => 1
            [Type] => domain
            [Wildcard] => no
            [MultiDomain] => yes
            [MultiDomainRecords] => Array
                (
                )

            [ApproverEmail] => info@hostfact.nl
            [CSR] => -----BEGIN...QUEST-----
            [ServerSoftware] => linux
            [Period] => 1
            [RequestDate] => 
            [RenewDate] => 
            [RegistrarReference] => 
            [Comment] => 
            [Status] => inrequest
            [Created] => 2022-11-24 11:00:00
            [Modified] => 2022-11-24 11:00:00
            [Subscription] => Array
                (
                    [Number] => 1
                    [NumberSuffix] => 
                    [ProductCode] => P004
                    [Description] => SSL testproduct - example.com
                    [PriceExcl] => 11.5
                    [PriceIncl] => 13.915
                    [TaxPercentage] => 21
                    [DiscountPercentage] => 0
                    [Periods] => 1
                    [Periodic] => j
                    [StartPeriod] => 2016-05-01
                    [EndPeriod] => 2017-05-01
                    [NextDate] => 2016-04-17
                    [ContractPeriods] => 1
                    [ContractPeriodic] => j
                    [StartContract] => 2018-01-14
                    [EndContract] => 2018-01-14
                    [TerminationDate] => 
                    [Reminder] => 
                    [InvoiceAuthorisation] => yes
                    [AmountExcl] => 11.5
                    [AmountIncl] => 13.92
                    [AutoRenew] => once
                )

            [SSLProductInfo] => Array
                (
                    [Name] => SSL dummy product
                    [Brand] => SSLs
                    [TemplateName] => 
                    [Product] => 4
                    [Periods] => Array
                        (
                            [0] => 1
                            [1] => 2
                            [2] => 3
                        )

                    [Type] => domain
                    [Wildcard] => no
                    [MultiDomain] => yes
                    [MultiDomainIncluded] => 4
                    [MultiDomainMax] => 10
                )

            [RegistrarInfo] => Array
                (
                    [Identifier] => 1
                    [Class] => registrarclass
                    [Name] => Example registrar
                    [Testmode] => 1
                    [DefaultDNSTemplate] => 0
                    [AdminHandle] => 0
                    [TechHandle] => 0
                )

        )

)