Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Small script to generate GPG key with a given Creation and Expire date
- # faketime is used as workaroud for Expire-Date misbehaviour
- # TZ=UTC faketime '2019-12-01 00:00:00' gpg --batch --full-generate-key ./GenerateGPGkey.scr
- # Print text as diagnostic.
- %echo Generating new GPG key
- # Suppress actual key generation (useful for syntax checking).
- # %dry-run
- Key-Type: default
- Key-Length: 4096
- Subkey-Type: default
- Subkey-Length: 2048
- Name-Real: $FirstName $LastName
- Name-Comment: $CommentString
- Name-Email: $mail
- # Creation-Date: 20191201T000000
- Expire-Date: 20250131T235900
- # Expire-Date: -1m, 5y. +1m
- Passphrase: $Password
- # Do a commit here, so that we can later print "done" :-)
- %commit
- %echo done
Advertisement
Add Comment
Please, Sign In to add comment