Examples
cert-make.py
Create required certificates (password is 1234)
cert-make-hsm.py
Create required certificates for SoftHSM (password is secret1)
pdf-make.py
Create simple two paged PDF document which is used in pdf-sign-cms.py.
pdf-sign-cms.py
Create signature in externally created PDF.
pdf-sign-cms-hsm.py
Create signature in externally created PDF but signed with key stored in SoftHSM.
pdf-sign-fpdf.py
Create signature while creating PDF.
pdf-verify.py
Verify prevously generated files (cms/pdf).
plain-make.py
Create simple UTF-8 text file.
plain-openssl.sh
Sign, encrypt and decrypt text file with help of openssl executable.
plain-sign-attr.py
Sign text file with ‘extended’ CMS attributes.
plain-sign-noattr.py
Sign text file without ‘extended’ CMS attributes.
plain-verify.py
Verify all generated signatures for text file.
smime-make.py
Create simple UTF-8 text file for use in following examples.
smime-openssl.sh
Create signed S/MIME file, encrypted S/MIME file and decrypt generated S/MIME file with help of openssl executable.
smime-encrypt.py
Create encrypted S/MIME file.
smime-decrypt.py
Decrypt encrypted S/MIME file.
smime-sign-attr.py
Create signed S/MIME file with ‘extended’ CMS attributes.
smime-sign-noattr.py
Create signed S/MIME file without ‘extended’ CMS attributes.
smime-verify.py
Verify all generated S/MIME files.
xml-make.py
Create simple xml file for use in following examples.
xml-hsm-certum-enveloped.py
XADES enveloped mode with real certificate (BES/T).
xml-hsm-certum-enveloping.py
XADES enveloping mode with real certificate (BES/T).
xml-hsm-softhsm2-enveloped.py
XADES enveloped mode with SoftHSM certificate (BES).
xml-hsm-softhsm2-enveloping.py
XADES enveloping mode with SoftHSM certificate (BES).
Included PDF and signature validator links in GitHub.