Erpnext Esignature
ERPnext E-Signature Project
- Author: Chandorkar-Technologies
- Repository: https://github.com/Chandorkar-Technologies/erpnext-esignature
- GitHub stars: 2
- Forks: 1
- Category: Other
- Maintenance: Actively Maintained
Install Erpnext Esignature
bench get-app https://github.com/Chandorkar-Technologies/erpnext-esignature
Add the Frappe Gems badge to your README
Maintain Erpnext Esignature? Paste this into your README:
[](https://frappegems.com/gems/apps/Chandorkar-Technologies/erpnext-esignature)
About Erpnext Esignature
ERPNext E-Signature App
A comprehensive digital signature solution for ERPNext using pyHanko library.
Features
Internal Signatures
- Automatic signing of quotations, invoices, salary slips with digital certificates
- Support for PKCS#12 certificates (.p12, .pfx files)
- Role-based certificate assignment
- Audit trail for all signature activities
External Signatures
- Send signature requests to customers/vendors via email
- Web-based signature interface with drawing pad
- Mobile-responsive design
- Token-based secure signing URLs
- Automatic reminders and expiration handling
Security & Compliance
- PKI-based digital signatures using pyHanko
- PDF/A compliance for long-term archival
- IP address tracking and timestamp logging
- Certificate validation and revocation checking
Installation
- Install the app:
bench get-app https://github.com/yourusername/erpnext-esignature
bench install-app esignature
- Install Python dependencies:
pip install pyhanko cryptography qrcode reportlab
- Restart ERPNext:
bench restart
Configuration
1. Digital Certificates Setup
- Go to E-Signature > Digital Certificate
- Create new certificate records for different departments (Sales, HR, Purchase)
- Upload your .p12/.pfx certificate files
- Enter certificate passwords
- Activate certificates
2. Document Configuration
- Quotations: Automatically signed before submission, external signature request sent to customer
- Sales Invoices: Internal signing optional, external signature available
- Salary Slips: HR signature applied automatically
- Purchase Orders: Internal signing for approval workflow
3. Email Templates
Customize email templates in E-Signature > Email Template: - Signature Request - Customer - Signature Confirmation
Usage
Internal Signatures
Internal signatures are applied automatically when documents are submitted, based on: - Document type (Quotation, Invoice, etc.) - Available active certificates - User roles and permissions
External Signatures
- Document is submitted with "Requires Signature" checked
- Signature request is automatically created
- Email with secure signing link is sent to recipient
- Recipient clicks link, reviews document, and signs
- Signed document is stored and linked to original record
Signature Request Management
- View all signature requests in E-Signature > Signature Request
- Track status: Draft, Sent, Viewed, Signed, Expired
- Send manual reminders
- Cancel or resend expired requests
API Endpoints
External Signing API
GET /api/method/esignature.api.external_signing.get_document?token=POST /api/method/esignature.api.external_signing.sign_document
Internal Signing API
- Certificate management
- PDF signing operations
- Signature validation
Scheduled Tasks
- Hourly: Send signature reminders based on frequency settings
- Daily: Mark expired signature requests
Security Considerations
- Certificate Storage: Store certificates securely with proper access controls
- Token Security: Signature tokens are cryptographically secure and expire automatically
- Network Security: Use HTTPS for all signature operations
- Audit Trail: All signature activities are logged with timestamps and IP addresses
Troubleshooting
Common Issues
Certificate Loading Errors
- Verify certificate file format (.p12/.pfx)
- Check certificate password
- Ensure certificate is not expired
PDF Signing Failures
- Check pyHanko installation
- Verify certificate validity
- Review error logs in ERPNext
Email Delivery Issues
- Configure SMTP settings in ERPNext
- Check email templates
- Verify recipient email addresses
Logs and Debugging
Check ERPNext error logs for detailed error messages:
tail -f sites/[site-name]/logs/web.log
License
MIT License - see LICENSE file for details.
Support
For support and customization: - Create issues on GitHub repository - Contact: admin@yourcompany.com
Contributing
- Fork the repository
- Create feature branch
- Submit pull request with tests
- Update documentation
Related Other apps for Frappe & ERPNext
- Erpnext — Free and Open Source Enterprise Resource Planning (ERP)
- Helpdesk — Modern, Streamlined, Free and Open Source Customer Service Software
- Print Designer — Visual print designer for Frappe / ERPNext
- Ctr — CTR模型代码和学习笔记总结
- Whitelabel — Whitelabel ERPNext
- Fossunited — fossunited.org
- Helm — Helm Chart Repository for Frappe/ERPNext
- Frappe Attachments S3 — A frappe app to upload file attachments in doctypes to s3.