SelfSignedCertificate

A self-signed certificate helper for testing and development purposes.

While it helps for testing and development, it should never ever be used in production settings.

package

Default

Methods

__construct

__construct() 

Filesystem path to the X.509 certificate file in PEM format .

certificatePath() : string

Response

string

the absolute path to the certificate.

Create a new <code>SelfSignedCertificate</code> instance.

create( $arg0 = null) : \io\vertx\jphp\core\net\SelfSignedCertificate
static

create()

Create a new SelfSignedCertificate instance with a fully-qualified domain name,

param $fqdn [string] a fully qualified domain name. create($fqdn)

Arguments

$arg0

string

Response

\io\vertx\jphp\core\net\SelfSignedCertificate

a new instance.

Delete the private key and certificate files.

delete() : void

Provides the {@link io.vertx.core.net.KeyCertOptions} RSA private key file in PEM format corresponding to the @see \io\vertx\jphp\core\net\SelfSignedCertificate::privateKeyPath

keyCertOptions() : \io\vertx\jphp\core\net\PemKeyCertOptions

Response

\io\vertx\jphp\core\net\PemKeyCertOptions

a {@link PemKeyCertOptions} based on the generated certificate.

Filesystem path to the RSA private key file in PEM format

privateKeyPath() : string

Response

string

the absolute path to the private key.

Provides the {@link io.vertx.core.net.TrustOptions} X.509 certificate file in PEM format corresponding to the @see \io\vertx\jphp\core\net\SelfSignedCertificate::certificatePath

trustOptions() : \io\vertx\jphp\core\net\PemTrustOptions

Response

\io\vertx\jphp\core\net\PemTrustOptions

a {@link PemTrustOptions} based on the generated certificate.