
Acrobat 9 Family of Products
Controlling Signing with Seed Values
Security Feature User Guide
Specifying a URL When a Valid Certificate is not Found 85
Figure 62 Policy OID
Example 5.11 Certificate policy seed value
var myIssuerCert = security.importFromFile("Certificate",
"/C/Temp/nebsCompany_DER.cer");
// Obtain the signature field object:
var f = this.getField("mySigFieldName");
f.signatureSetSeedValue(
{
certspec: {
issuer: [myIssuerCert],
oid: ["2.16.840.1.1.113733.1.7.23.2"],
flags: 6
}
} )
5.10.4 Specifying a URL When a Valid Certificate is not Found
When a valid certificate is not found, users can be redirected to a URL during the signing workflow. The
URL may be to a server with a certificate repository; or, more likely, the URL may be a link to a Web page
describing how to obtain a new or valid certificate.
To specify a certificate with a specific policy:
1. Create a signature field with an intuitive name and tooltip.
2. Create the JavaScript that gets the field object and uses the seed value method (
Example 5.12
).
3. Specify a certificate as described in one of the previous sections. Use
issuer
and/or
subject
.
4. Specify the URL. The URL can point to a certificate server or to instructions for getting a certificate.
5. Run the JavaScript, save the document, and test the field.