{"id":22591702,"url":"https://github.com/pa-0/importpfx","last_synced_at":"2025-03-28T18:26:34.856Z","repository":{"id":258031395,"uuid":"873295517","full_name":"pa-0/importpfx","owner":"pa-0","description":"PKCS12 (PFX) Certificate Import Utility -- written by Joe Klemencic","archived":false,"fork":false,"pushed_at":"2024-10-16T00:35:51.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T18:52:46.265Z","etag":null,"topics":["certificates","cryptography","import","pfx","pkcs12","portable","standalone","win32"],"latest_commit_sha":null,"homepage":"","language":"C++","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/pa-0.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-15T23:36:44.000Z","updated_at":"2024-10-16T00:35:54.000Z","dependencies_parsed_at":"2024-10-18T03:48:12.402Z","dependency_job_id":null,"html_url":"https://github.com/pa-0/importpfx","commit_stats":null,"previous_names":["pa-0/importpfx"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pa-0%2Fimportpfx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pa-0%2Fimportpfx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pa-0%2Fimportpfx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pa-0%2Fimportpfx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pa-0","download_url":"https://codeload.github.com/pa-0/importpfx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246078683,"owners_count":20720183,"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":["certificates","cryptography","import","pfx","pkcs12","portable","standalone","win32"],"created_at":"2024-12-08T09:13:41.706Z","updated_at":"2025-03-28T18:26:34.824Z","avatar_url":"https://github.com/pa-0.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `IMPORTPFX` v1.0 by Joe Klemencic\n\n\u003csup\u003e\u003cem\u003eSimple standalone utility for importing `PKCS12` (`.pfx`) certificates into the certificate store and (optionally) overwriting any existing certificate from the same issuer.\u003c/em\u003e\u003c/sup\u003e\n\n### OVERVIEW\n\nThis utility will import a `PKCS12` certificate file (with a **`.p12`** or **`.pfx`** extension) into the certificate store specified by the `-s` parameter.\nThe default behavior is to overwrite a like certificates (if present in the same store). The `-r \"Subject OU\"` will remove all certificates in the target store matching the Subject CN\nin the `PKCS12` file and the Subject OU set to the `-r` parameter.\n\n### USAGE: \n\n```bat\nimportpfx.exe -f FILENAME.PFX -p PASSWORD -t USER|MACHINE -s CERTSTORE [-r \"Subject OU to remove\" | -all]\n```\n\n### PARAMETERS:\n\nflag | description\n--|--\n`-f` | PKCS12 filename\n`-p` | Password to secure the private key with\n`-t` | Store type (USER or MACHINE)\n`-s` | The certificate store to import into (MY is a common param)\n`-r \"Subject OU Text\"` | Deletes all certs with _Subject OU_ matching `\"Subject OU Text\"` \u0026 _Subject CN_ matching `PKCS12` Subject CN\n`-r -all` | Delete ALL user certificates in the \u003ccertstore\u003e\n\n### EXAMPLES:\n\n1. #### IMPORT a PFX/PKCS12 file into the MY store, overwriting if allowed:\n    \n    ```bat\n    importpfx.exe -f x509.p12 -p \"password\" -t USER -s MY\n    ```\n\n2. #### IMPORT a PFX/PKCS12 file into the local machine Testing store and delete any stored certificates with a Subject containing `OU=\"Self-Signed CA\"`:\n    \n    ```bat\n    importpfx.exe -f x509.p12 -p \"\" -t MACHINE -s Testing -r \"Self-Signed CA\"\n    ```\n\n3. #### Delete ALL certificates in the USER MY store:\n    \n    ```bat\n    importpfx.exe -t USER -s MY -r -all\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpa-0%2Fimportpfx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpa-0%2Fimportpfx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpa-0%2Fimportpfx/lists"}