How to digitally sign PDF documents using Python with an etoken (pen drive)?
How to digitally sign PDF documents using Python? I have an etoken (in pen drive). Additionally, I have created an excel file using openpyxl and converted it into PDF. Now there is a requirement that I need to add digital signature to that PDF document. Is there any way I can achieve this in python? Use python module designed for this task, it signs digitally PDF-s. Everything what You should have is p12/pfx file with certificate. Simple example in: github repository example #!/usr/bin/env python3 # *-* coding: utf-8 *-* from oscrypto import asymmetric from endesive import pdf def main(): dct