PHP Class DirectAdmin\LetsEncrypt\Lib\Domain

Inheritance: use trait DirectAdmin\LetsEncrypt\Lib\Utility\ConfigurableTrait
Datei anzeigen Open project: Petertjuh360/da-letsencrypt Class Usage Examples

Public Properties

Property Type Description
$account
$domainKeys Kelunik\Acme\KeyPair

Public Methods

Method Description
__construct ( String $domain, Account | null $account = null ) Initialize a domain with subdomains
__debugInfo ( )
applyCertificates ( ) : boolean Apply certificates to DirectAdmin
createKeys ( ) : KeyPair Create domain RSA keys
getCertificate ( ) : string Get the domains certificate
getCertificateAuthorityCertificates ( ) : string[] Get a array of certificate authority certificates
getDomain ( ) : String Get domain's name
getPath ( ) : string Get path to domain root
getStoragePath ( ) : string Get path to domain storage
getSubdomains ( ) : Array Get list of subdomains
receiveSubdomains ( ) : Array Receive available subdomains from Directadmin
removeCertificates ( ) Disable certificates in DirectAdmin
requestCertificate ( KeyPair | null $domainKeys = null, array | null $subdomains = null ) : array Request certificate at ACME

Private Methods

Method Description
getSocket ( ) : HTTPSocket Get already initialized HTTPSocket, or create a new one

Method Details

__construct() public method

Initialize a domain with subdomains
public __construct ( String $domain, Account | null $account = null )
$domain String Domain name
$account Account | null Account

__debugInfo() public method

public __debugInfo ( )

applyCertificates() public method

Apply certificates to DirectAdmin
public applyCertificates ( ) : boolean
return boolean

createKeys() public method

Create domain RSA keys
public createKeys ( ) : KeyPair
return Kelunik\Acme\KeyPair

getCertificate() public method

Get the domains certificate
public getCertificate ( ) : string
return string

getCertificateAuthorityCertificates() public method

Get a array of certificate authority certificates
public getCertificateAuthorityCertificates ( ) : string[]
return string[]

getDomain() public method

Get domain's name
public getDomain ( ) : String
return String

getPath() public method

Get path to domain root
public getPath ( ) : string
return string

getStoragePath() public method

Get path to domain storage
public getStoragePath ( ) : string
return string

getSubdomains() public method

Get list of subdomains
public getSubdomains ( ) : Array
return Array

receiveSubdomains() public method

Receive available subdomains from Directadmin
public receiveSubdomains ( ) : Array
return Array

removeCertificates() public method

Disable certificates in DirectAdmin
public removeCertificates ( )

requestCertificate() public method

Request certificate at ACME
public requestCertificate ( KeyPair | null $domainKeys = null, array | null $subdomains = null ) : array
$domainKeys Kelunik\Acme\KeyPair | null
$subdomains array | null List of subdomains to request
return array

Property Details

$account public_oe property

public $account

$domainKeys public_oe property

public KeyPair,Kelunik\Acme $domainKeys
return Kelunik\Acme\KeyPair