getSignedCertificateFromFile( filePath, password ) method

Certificate

Syntax

getSignedCertificateFromFile( filePath, password )

Parameters

Name Type Description
filePath String The absolute path to the file.
password String The password needed to access the certificate's private data.

Example

  // The following script gets the signed certificate data for the first
  // p12 file found on the sdcard
  var certStore = CertificateStore.getDefault();
  var certPaths = certStore.listAvailableCertificatesFromFileSystem("/sdcard/", "p12");
  var cert = certStore.getSignedCertificateFromFile(certPaths[0], "password");

Source

Certificate.js, line 287.