Digital signatures - chapter 3
These examples were written in the context of Chapter 3 - "Certificate Authorities, certificate revocation and time stamping" of the Digital Signatures for PDF documents eBook.
c3_01_signwithcacert
Signing a document with a PKCS12 file from the CAcert Certificate Authority:
c3_02_getcrlurl
Getting the Certificate Revocation List (CRL) URLs from a certificate chain:
c3_03_signwithcrldefaultimp
Using the default CrlClient implementation:
c3_04_signwithcrlonline
Getting the CRL online:
c3_05_signwithcrloffline
Creating a CrlClient using an offline copy of the CRL:
c3_06_getocspurl
Fetching the Online Certificate Status Protocol (OCSP) URL from a certificate:
c3_07_signwithocsp
Signing a document with the OCSP:
c3_08_gettsaurl
Extracting a Time Stamping Authority (TSA) URL from a certificate:
c3_09_signwithtsa
Signing a document with TSAClientBouncyCastle, an implementation of TSAClient:
c3_10_signwithtsaevent
Adding an event to a TSAClientBouncyCastle instance:
c3_11_signwithtoken
Signing a document with a USB token using Microsoft CryptoAPI (MSCAPI) - currently only available for Java:
c3_12_signwithestimatedsize
Estimating the size in bytes of the signature content: