{"id":23622380,"url":"https://github.com/cub0n/github-gpg-creation","last_synced_at":"2026-04-28T21:33:42.843Z","repository":{"id":166906272,"uuid":"530652530","full_name":"Cub0n/Github-GPG-Creation","owner":"Cub0n","description":"Generates and loads a signing GPG Key to GitHub. Configures global GIT settings accordingly.","archived":false,"fork":false,"pushed_at":"2024-12-07T19:45:01.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T20:19:03.017Z","etag":null,"topics":["github","github-api","github-config","gpg","gpg-key","java","signing","signing-commits"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Cub0n.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":"2022-08-30T12:44:01.000Z","updated_at":"2024-12-07T19:45:00.000Z","dependencies_parsed_at":"2023-05-21T13:30:59.479Z","dependency_job_id":null,"html_url":"https://github.com/Cub0n/Github-GPG-Creation","commit_stats":null,"previous_names":["cub0n/github-gpg-creation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cub0n%2FGithub-GPG-Creation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cub0n%2FGithub-GPG-Creation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cub0n%2FGithub-GPG-Creation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cub0n%2FGithub-GPG-Creation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cub0n","download_url":"https://codeload.github.com/Cub0n/Github-GPG-Creation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239516140,"owners_count":19651901,"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":["github","github-api","github-config","gpg","gpg-key","java","signing","signing-commits"],"created_at":"2024-12-27T20:19:02.075Z","updated_at":"2025-11-07T02:30:52.182Z","avatar_url":"https://github.com/Cub0n.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\r\nThe programm creates a newly GPG key according to [GitHub Website](https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key).\r\nFor signing a RSA 4096 GPG key and a RSA 4096 sub-key are needed. The name and eMail have to be the same as in GitHub.\r\nThe expiry date is hardcoded and the newly GPG key is only valid for two years.\r\n\r\n**Attention: The final configuration is automatically saved to the global GIT config and can then be directly used by Eclipse.**\r\n\r\n# Usage\r\n## Token generation\r\nA special kind of token has to be generated (see: https://github.com/settings/tokens/new).\r\n\r\nThe only selected scopes are *user* and *admin:gpg_key*.\r\n\r\n![New token](pics/token.png)\r\n\r\n**Attention: This token has to have a very short lifetime (you need it only to generate the GPG key) and it should be a newly generated token only for this purpose.**\r\n\r\n## Start the programm\r\nThe program should run on the commandline and from every IDE you use, as long as GPG and GIT are installed.\r\n* The first program argument is the Github token and is mandatory\r\n* The second argument is the password for the GPG Key and is optional. Then the password have to be typed in at the commandline\r\n\r\n# TODO\r\n* The expiry date for the GPG key has not to be hardcoded\r\n* Frontend for generation\r\n* Automatically find GPG and GIT native programms on ~~Linux~~, Mac and Windows systems\r\n* Adapt to other languages than english (see GPGWrapper: substring between \"gpg: key\" and \"marked as ultimately trusted\")\r\n\r\n# Inspired by \r\n* https://github.com/wimtie/gpg-java\r\n* https://github.com/hub4j/github-api\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcub0n%2Fgithub-gpg-creation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcub0n%2Fgithub-gpg-creation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcub0n%2Fgithub-gpg-creation/lists"}