Digital signature cert integration

Can any one kindly suggest where/how to start integrating Digital signature cert usb token with erpnext ?
How can i interface with the certificate ?
How can i attach it with invoices and tax authority portal ?

Thanks in advance