Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Repository files navigation

Viindoo Sign Client

Viindoo Sign Client Python Platform

Digital Signing Application for Viindoo/Odoo Integration

Secure, cross-platform digital signing using USB Token/Smart Card


📋 Overview

Viindoo Sign Client is a desktop application that enables digital document signing directly from your local machine. It integrates seamlessly with the viin_sign module in Odoo, allowing you to sign PDF documents using:

  • 🔐 USB Token/Smart Card (PKCS#11)
  • 🖥️ Windows Certificate Store
  • 📱 Hardware Security Modules (HSM)

✨ Key Features

  • 🔒 Secure Signing: Industry-standard PKCS#11 and X.509 certificate support
  • 🌐 Cross-Platform: Native support for Windows, Linux, and macOS
  • ⚡ Real-time Integration: WebSocket API for seamless Odoo connectivity
  • 🎨 User-Friendly: Clean, intuitive desktop interface
  • 🔄 Auto-Updates: Checks for a new release on start and every 12 hours, and updates in one click
  • 📄 PDF Support: Full PDF signing with visual signatures and timestamps

🚀 Quick Start

Prerequisites

  • Internet connection for the installation
  • USB Token/Smart Card (for hardware-based signing)

Python 3.10 - 3.14 is needed and is installed for you when the computer has none. No compiler or C++ Build Tools are needed.

Installation

Choose your operating system:

🪟 Windows
  1. Download Viindoo-Sign-Client-Setup.exe from the latest release
  2. Double-click it. No administrator rights are needed. The installer sets up Python (when the computer has none) and the libraries, which takes a few minutes.

Windows may show a SmartScreen warning because the installer is not code-signed yet: click More info, then Run anyway.

After Installation

  • Desktop Shortcut: Click the "Viindoo Sign Client" icon
  • Start Menu: Search for "Viindoo Sign Client"
  • Uninstall: Settings > Apps > Viindoo Sign Client

Without the installer: extract the ZIP file of the release and run install_script\windows.bat.

🐧 Linux (Ubuntu/Debian)
  1. Download the latest release from GitHub and extract it
  2. Run bash install_script/linux.sh

The script uses the Python 3 of the system when it is 3.10 - 3.14 and installs Python 3.12 otherwise. It asks for your password only to install system packages (python3-venv, python3-tk).

After Installation

  • Applications Menu: Search for "Viindoo Sign Client"
  • Command Line: ./bin.sh
🍎 macOS
  1. Download the latest release from GitHub and extract it
  2. Run bash install_script/macos.sh

The script uses the Python 3.12 - 3.14 of the system, or installs Python 3.13 with Homebrew.

After Installation

  • Applications Folder: "Viindoo Sign Client.app"
  • Command Line: ./bin.sh or viin-sign-client

🗑️ Uninstallation

Choose your operating system:

🪟 Windows
  • Installed with Viindoo-Sign-Client-Setup.exe: uninstall Viindoo Sign Client in Settings > Apps.
  • Installed from the ZIP file: run uninstall_script\windows.bat and confirm.
🐧 Linux (Ubuntu/Debian)
  1. Navigate to the uninstall_script folder
  2. Run bash linux.sh
  3. Confirm removal when prompted
  4. Choose what to keep or remove (data, virtual environment, system services)
🍎 macOS
  1. Navigate to the uninstall_script folder
  2. Run bash macos.sh
  3. Confirm removal when prompted
  4. Choose what to keep or remove (data, virtual environment, App Bundle)

🔧 Configuration

USB Token/Smart Card Setup

  1. Install your token's PKCS#11 library
  2. Connect your USB token to your computer
  3. Launch Viindoo Sign Client
  4. Select "PKCS#11" as signing method
  5. Browse to your PKCS#11 library path
  6. Enter your PIN when prompted

Windows Certificate Store

  1. Import your certificate to Windows Certificate Store
  2. Launch Viindoo Sign Client
  3. Select "Windows Certificate" as signing method
  4. Choose your certificate from the list

🔗 Integration with Odoo

Viindoo Sign Module

This client integrates with the viin_sign Odoo module:

  1. Install the viin_sign module in your Odoo instance
  2. Configure the module settings
  3. Launch Viindoo Sign Client on user machines
  4. Start signing documents directly from Odoo

Allow your Odoo website

The first time an Odoo website asks to sign, the client refuses and the Viindoo Sign Client window asks: "Allow https://your-odoo.example.com to use the digital signatures of this computer?" Click Yes, then sign again in Odoo. This stops other websites from signing with your certificates. The allowed websites are listed in the client window; select one and click Remove to take the permission back.

Updates

The client looks for a new release when it starts and every 12 hours, and the window asks "Version X is available. Update now?". Click Yes to install it, or No to be asked again at the next check. Check for update in the window checks at once. Restart the client after an update.

A release the maintainers mark as required (a security fix, for example) pauses signing and the listing of certificates until it is installed: Odoo shows "Update Viindoo Sign Client to X: open its window and click Update." and the window shows Update now. A client that cannot reach GitHub (offline, rate limited) is never blocked and tries again 30 minutes later.

API Endpoints

  • GET /version: the version of the client
  • WebSocket /ws/v1/{client_id}: listing certificates and signing, used by viin_sign

📦 Releasing

  1. Set __version__ and __version_info__ in version.py and the version badge above, merge, then push the tag (v0.2.1 or 0.2.1). release.yml builds Viindoo-Sign-Client-Setup.exe and creates the release with generated notes (or attaches the installer to a release that already exists).
  2. Installed clients compare the numbers of the latest release (0.10.0 is newer than 0.2.0) with their own version.
  3. Required update: put the marker [required-update] alone on a line of the release notes, for example in Edit release on GitHub, or in the notes of the release you create yourself before pushing the tag. The marker is case-insensitive and also accepted as [required update]. Remove the line to make the release optional again. A sentence that only contains the words is not a marker, so generated notes never trigger it by accident.
  4. Only the notes of the latest release count: a later release replaces an earlier one, so repeat the marker in it when the fix is still needed.

Clients see the marker at their next check, which is within 12 hours, or when they start, or when the user clicks Check for update.


🐛 Troubleshooting

Check the log file at data_dir/log.txt for detailed error logs, including the checks for a new release that could not reach GitHub.

When a release changes the libraries, the client installs them the next time it starts.


Made with ❤️ by the Viindoo Team

Website • Documentation • Support

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages