getSignedCertificateFromAfaria( commonName, challengeCode ) method

Certificate

Syntax

getSignedCertificateFromAfaria( commonName, challengeCode )

Parameters

Name Type Description
commonName String Common name used to generate the certificate by Afaria
challengeCode String Challenge code for the user so that CA can verify and sign it

Throws

Returns

JSON object with CertBlob in Base64 encoded format and other information about certificate

Example

// The following script gets a signed certificate from the Afaria server.
var certStore = CertificateStore.getDefault();
cert = certStore.getSignedCertificateFromAfaria("Your_CN", "CA_challenge_code");

Source

Certificate.js, line 362.