{"id":22720859,"url":"https://github.com/open-byte/xml-signer","last_synced_at":"2025-04-12T14:33:25.142Z","repository":{"id":200405971,"uuid":"690251486","full_name":"open-byte/xml-signer","owner":"open-byte","description":"XML Signer Based on xmlsig, xades and OpenSSL libraries","archived":false,"fork":false,"pushed_at":"2023-10-16T01:58:22.000Z","size":79,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T09:11:09.337Z","etag":null,"topics":["costa-rica","electronic-invoices","factura-electronica","factura-electronica-cr","firmador","ministerio-de-hacienda-costa-rica","openssl","p12","python","signer","xades","xml-signature","xml-signing-lib","xmlsig"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/open-byte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-11T20:44:33.000Z","updated_at":"2024-12-31T06:24:03.000Z","dependencies_parsed_at":"2023-10-16T21:16:24.017Z","dependency_job_id":null,"html_url":"https://github.com/open-byte/xml-signer","commit_stats":null,"previous_names":["open-byte/xml-signer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-byte%2Fxml-signer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-byte%2Fxml-signer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-byte%2Fxml-signer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-byte%2Fxml-signer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-byte","download_url":"https://codeload.github.com/open-byte/xml-signer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248581361,"owners_count":21128155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["costa-rica","electronic-invoices","factura-electronica","factura-electronica-cr","firmador","ministerio-de-hacienda-costa-rica","openssl","p12","python","signer","xades","xml-signature","xml-signing-lib","xmlsig"],"created_at":"2024-12-10T14:11:58.541Z","updated_at":"2025-04-12T14:33:25.104Z","avatar_url":"https://github.com/open-byte.png","language":"Python","readme":"# XML Signer\nAuthor: @Izcarmt95\n\nThis is a simple XML Signer made in Python 3.11 using the library lxml.\nValid for Electronic Invoice Costa Rica. Version 4.X +\n\n## Prerequisites\n- Python 3.11\n\n## Installation\n- Clone this repository\n- Create a virtual environment\n    ```\n    python3.11 -m venv .env_p3.11\n    ```\n- Activate the virtual environment\n    ```\n    source .env_p3.11/bin/activate\n    ```\n- Install the requirements\n    ```\n    pip install -r requirements.txt\n    ```\n- Run the script and follow the instructions\n    ```\n    $ ./main.py --help\n                                                                                                                 \n    Usage: main.py [OPTIONS]                                                                                    \n                                                                                                                \n    ╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────╮\n    │ *  --xml-path                   TEXT  Path or name to xml file to sign (Factura Electrónica CR)           │\n    │                                       [default: None]                                                     │\n    │                                       [required]                                                          │\n    │ *  --p12-path                   TEXT  Path or name to p12 certificate [default: None] [required]          │\n    │ *  --pin                        TEXT  Pin of the certificate (4 digits) [default: None] [required]        │\n    │    --base64      --no-base64          If True, the output will be in base64 format [default: no-base64]   │\n    │    --help                             Show this message and exit.                                         │\n    ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯\n    ```\n## Example\n- **xml file and cert file must be in the same directory where the script is executed**\n\n![images](./images/result.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-byte%2Fxml-signer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-byte%2Fxml-signer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-byte%2Fxml-signer/lists"}