issueEndpointCertificate

fun issueEndpointCertificate(subjectPublicKey: PublicKey, issuerPrivateKey: PrivateKey, validityEndDate: ZonedDateTime, issuerCertificate: Certificate? = null, validityStartDate: ZonedDateTime = ZonedDateTime.now()): Certificate

Issue Relaynet PKI certificate to a private or public endpoint.

Parameters

subjectPublicKey

The public key of the subject

issuerPrivateKey

The private key of the issuer

validityEndDate

The end date of the certificate to be issued

issuerCertificate

The certificate of the issuer, if the subject is a private endpoint

validityStartDate

The start date of the certificate to be issued