{"id":15044269,"url":"https://github.com/eldersantoss/pycertmanager","last_synced_at":"2026-01-20T20:33:15.643Z","repository":{"id":61596387,"uuid":"540549349","full_name":"eldersantoss/pycertmanager","owner":"eldersantoss","description":"Module to assist in the programmatic management of PFX digital certificates on Windows operating system.","archived":false,"fork":false,"pushed_at":"2022-10-17T14:52:39.000Z","size":45,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T14:02:00.561Z","etag":null,"topics":["certificate","cryptography","pfx","pki","powershell","windows"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pycertmanager/","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/eldersantoss.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}},"created_at":"2022-09-23T17:30:52.000Z","updated_at":"2024-05-27T17:42:29.000Z","dependencies_parsed_at":"2022-10-19T16:45:30.206Z","dependency_job_id":null,"html_url":"https://github.com/eldersantoss/pycertmanager","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/eldersantoss/pycertmanager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldersantoss%2Fpycertmanager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldersantoss%2Fpycertmanager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldersantoss%2Fpycertmanager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldersantoss%2Fpycertmanager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eldersantoss","download_url":"https://codeload.github.com/eldersantoss/pycertmanager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldersantoss%2Fpycertmanager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28612956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["certificate","cryptography","pfx","pki","powershell","windows"],"created_at":"2024-09-24T20:50:21.865Z","updated_at":"2026-01-20T20:33:15.623Z","avatar_url":"https://github.com/eldersantoss.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Certificate Manager\n\nModule to assist in the programmatic management of `PFX` digital certificates on\n`Windows` operating system.\n\nWorking with A1 digital certificates (e-CPF and e-CNPJ), it is extremely common\nto need to install and remove them from operating system, or even obtain some\ninformation like expiration date or issuer of these objects. So this module\nwas made for provide these operations programmatically and easily.\n\n[![License](https://img.shields.io/github/license/eldersantoss/pycertmanager)](https://github.com/eldersantoss/pycertmanager/blob/main/LICENSE)\n[![Issues](https://img.shields.io/github/issues/eldersantoss/pycertmanager)](https://github.com/eldersantoss/pycertmanager/issues)\n[![Version](https://img.shields.io/pypi/v/pycertmanager)](https://pypi.org/project/pycertmanager/)\n[![Last commit](https://img.shields.io/github/last-commit/eldersantoss/pycertmanager)](https://github.com/eldersantoss/pycertmanager/commits/main)\n[![Testing](https://github.com/eldersantoss/pycertmanager/actions/workflows/testing.yml/badge.svg)](https://github.com/eldersantoss/pycertmanager/actions/workflows/testing.yml)\n![Coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/eldersantoss/c26a50f51f846509ef4ca4ab5c37909b/raw/coverage.json)\n\n## Table of content\n\n* [Installing](#installing)\n    * [Requirements](#requirements)\n* [Using](#using)\n    * [Examples](#examples)\n* [How does it works](#how-does-it-works)\n* [Support](#support)\n* [Contributing](#contributing)\n    * [Setup your environment (Windows PowerShell)](#setup-your-environment-windows-powershell)\n* [Roadmap](#roadmap)\n* [License](#license)\n\n\n## Installing\n\n```powershell\npip install pycertmanager\n```\n\n### Requirements\n\nThe module currently supports only `Windows` operating system and has been tested over `Python \u003e= 3.10`.\n\n\n## Using\n\nThe main entity of the module is the `Certificate` class which provides the\nmethods for manipulating certificates within the operating system and\nobtaining relevant information from them.\n\n### Examples\n\n```python\nfrom pycertmanager import Certificate\n\n# creating certificate object\ncertificate = Certificate(\"mycertificate.pfx\", \"123456\")\n\n# installing certificate on system\ncertificate.install()\n\n# getting a list with certificate subject data\nsubject_data = certificate.get_subject_data()\n\n# getting certificate expiration date\nexpiration_date = certificate.get_expiration_date()\n\n# getting certificate expiration date\nissue_date = certificate.get_issue_date()\n\n# removing a certificate\n# note that it is a class method and 'pycertmanager.test' is the\n# Common Name (CN) of the certificate you want to remove\nCertificate.remove(\"pycertmanager.test\")\n```\n\n## How does it works\n\nIn short, some methods (install and remove) calls\n[PowerShell cmdlets](https://learn.microsoft.com/en-us/powershell/module/pki/)\nthrough subprocess built-in module while the remaining methods uses\n[cryptography](https://github.com/pyca/cryptography) package primitives.\n\n## Support\n\nFound a problema? Please open an `Issue` describing it or a `Pull Request` if\nyou know how to fix it. Make sure to write the `tests` from your code.\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to\ndiscuss what you would like to change. Reinforcing, make sure to write tests from your code.\n\n### Setup your environment (Windows PowerShell)\n\n```powershell\n# clone this repository\ngit clone https://github.com/eldersantoss/pycertmanager.git\n\n# create and activate virtual environment\ncd pycertmanager\npython -m venv venv\n\u0026 venv/Scripts/Activate\n\n# install dependencies\npip install -r requirements.txt\n\n# run tests\npython -m unittest\n```\n\n## Roadmap\n\n* **Implement Linux support:** the intention is to make this module\ncross-platform. \n\n## License\n\nThis project is licensed under the terms of the [MIT License](https://github.com/eldersantoss/pycertmanager/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldersantoss%2Fpycertmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldersantoss%2Fpycertmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldersantoss%2Fpycertmanager/lists"}