Skip to content

Generates and loads a signing GPG Key to GitHub. Configures global GIT settings accordingly.

License

Notifications You must be signed in to change notification settings

Cub0n/Github-GPG-Creation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

The programm creates a newly GPG key according to GitHub Website. For 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. The expiry date is hardcoded and the newly GPG key is only valid for two years.

Attention: The final configuration is automatically saved to the global GIT config and can then be directly used by Eclipse.

Usage

Token generation

A special kind of token has to be generated (see: https://github.com/settings/tokens/new).

The only selected scopes are user and admin:gpg_key.

New token

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.

Start the programm

The program should run on the commandline and from every IDE you use, as long as GPG and GIT are installed.

  • The first program argument is the Github token and is mandatory
  • The second argument is the password for the GPG Key and is optional. Then the password have to be typed in at the commandline

TODO

  • The expiry date for the GPG key has not to be hardcoded
  • Frontend for generation
  • Automatically find GPG and GIT native programms on Linux, Mac and Windows systems
  • Adapt to other languages than english (see GPGWrapper: substring between "gpg: key" and "marked as ultimately trusted")

Inspired by

About

Generates and loads a signing GPG Key to GitHub. Configures global GIT settings accordingly.

Topics

Resources

License

Stars

Watchers

Forks

Languages