Service.CertificateAuthority

vim:ts=4:sw=4:expandtab:cindent:syntax=thrift Certificate Authority methods

Summary
Service.CertificateAuthorityvim:ts=4:sw=4:expandtab:cindent:syntax=thrift Certificate Authority methods
Functions
createCSRCreate a certificate signing request
uploadCSRIf you want to generate the CSR yourself, you may, but in order for us to generate the certificate, we need it uploaded and assigned an id.
getCSRRetrieve the information of a given CSR id.
findCSRSearch for a CSR given certain criteria Optionally include the private key in the result.
destroyCSRDelete a CSR and it’s private key from the database
checkCSRVerificationCheck if CSR verification is valid yet
createCertificateCreate a Stackable CA signed certificate from a CSR Indicate how many days you want the cert signed for
uploadCertificateIf you’ve purchased your Certificate or created it in some other way, you’ll need to upload the Certificate to us before it can be installed for a Site.
revokeCertificateRevoke a certificate by it’s id You can only revoke certificates that were signed by Stackable
unrevokeCertificateUnrevoke a certificate by it’s id You can only unrevoke certificates that were signed by Stackable
destroyCertificateDelete a certificate.
getCertificateRetrieve the information of a given Certificate id
findCertificateSearch for a Certificate given certain criteria
getCAPublicKeyRequest the Stackable CA public key as a PEM-encoded x509 certificate.

Functions

createCSR

Create a certificate signing request

Parameters

idno docs (idx: 1, type: Types.CustomerId)
subjectno docs (idx: 2, type: Types.DistinguishedName)
passphraseIf present, will encrypt the private key with this passphrase (idx: 3, type: Thrift.string, optional)
altNamesno docs (idx: 4, type: Thrift.list (Types.SubjectAltName), optional)

Returns

Types.CSR

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

uploadCSR

If you want to generate the CSR yourself, you may, but in order for us to generate the certificate, we need it uploaded and assigned an id.  This is how you would do this.  The private key must not be passphrase encoded.

Parameters

customerIdno docs (idx: 1, type: Types.CustomerId)
requestno docs (idx: 2, type: Types.PEMString)
privateKeyno docs (idx: 3, type: Types.PEMString)

Returns

Types.CSR

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

getCSR

Retrieve the information of a given CSR id.  Optionally include the private key in the result.

Parameters

idno docs (idx: 1, type: Types.CSRId)
includePrivateKeyno docs (idx: 2, type: Thrift.bool, optional)

Returns

Types.CSRMeta

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

findCSR

Search for a CSR given certain criteria Optionally include the private key in the result.

Parameters

customerIdno docs (idx: 1, type: Types.CustomerId, optional)
commonNameno docs (idx: 2, type: Types.CACommonName, optional)
includePrivateKeyno docs (idx: 3, type: Thrift.bool, optional)

Returns

Thrift.list (Types.CSRMeta)

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

destroyCSR

Delete a CSR and it’s private key from the database

Parameters

idno docs (idx: 1, type: Types.CSRId)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

checkCSRVerification

Check if CSR verification is valid yet

Parameters

customerIdno docs (idx: 1, type: Types.CustomerId)
domainno docs (idx: 2, type: Types.DomainName)

Returns

Thrift.bool

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

createCertificate

Create a Stackable CA signed certificate from a CSR Indicate how many days you want the cert signed for

Parameters

csrIdno docs (idx: 1, type: Types.CSRId)
daysno docs (idx: 2, type: Types.CADays)

Returns

Types.Certificate

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

uploadCertificate

If you’ve purchased your Certificate or created it in some other way, you’ll need to upload the Certificate to us before it can be installed for a Site.  This is also to be used to upload chained certificates, which you won’t have the privateKey for for obvious reasons.

Parameters

customerIdno docs (idx: 1, type: Types.CustomerId)
certificateno docs (idx: 2, type: Types.PEMString)
privateKeyno docs (idx: 3, type: Types.PEMString, optional)
csrIdProvide the CSR id if we generated the CSR but it was signed elsewhere.  This will bring in the privateKey for you.  (idx: 4, type: Types.CSRId, optional)

Returns

Types.Certificate

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

revokeCertificate

Revoke a certificate by it’s id You can only revoke certificates that were signed by Stackable

Parameters

idno docs (idx: 1, type: Types.CertificateId)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

unrevokeCertificate

Unrevoke a certificate by it’s id You can only unrevoke certificates that were signed by Stackable

Parameters

idno docs (idx: 1, type: Types.CertificateId)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

destroyCertificate

Delete a certificate.  Also revokes if it’s signed by Stackable.

Parameters

idno docs (idx: 1, type: Types.CertificateId)

Returns

Thrift.void

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

getCertificate

Retrieve the information of a given Certificate id

Parameters

idno docs (idx: 1, type: Types.CertificateId)
includeCSRno docs (idx: 2, type: Thrift.bool, optional)
includePrivateKeyno docs (idx: 3, type: Thrift.bool, optional)
includeChainno docs (idx: 4, type: Thrift.bool, optional)

Returns

Types.CertificateMeta

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

findCertificate

Search for a Certificate given certain criteria

Parameters

customerIdno docs (idx: 1, type: Types.CustomerId)
commonNameno docs (idx: 2, type: Types.CACommonName, optional)
validBeforeChecks that the validTo of the certificate is after this value (idx: 3, type: Types.UnixTime, optional)
validAfterChecks that the validTo of the certificate is before this value (idx: 4, type: Types.UnixTime, optional)
includeCSRno docs (idx: 5, type: Thrift.bool, optional)
includePrivateKeyno docs (idx: 6, type: Thrift.bool, optional)

Returns

Thrift.list (Types.CertificateMeta)

Throws

Exceptions.InvalidArguments (idx: 1)

Roles

  • customer

getCAPublicKey

Request the Stackable CA public key as a PEM-encoded x509 certificate.

Returns

Types.PEMString

Roles

  • customer
Base type Thrift.i16
Representation of the subject of a CSR and Certificate
A Thrift built-in type.
A Thrift built-in type.
An alternative name for a certificate Provide either ‘dns’ or ‘ip’ but not both.
Representation of a Certificate Signing Request If the list ‘verifies’ has data, the CSR cannot yet be used for creating a certificate.
Base type Thrift.string
Base type Thrift.i32
A Thrift built-in type.
A CSR with the private optionally included
Base type Thrift.string
A Thrift built-in type.
Base type Thrift.string
Base type Thrift.i16
Representation of an SSL certificate If ‘verify’.’
Base type Thrift.i32
A Certificate with optionally the CSR and private key
Base type Thrift.i32
Close