Skip to content

Instantly share code, notes, and snippets.

@IsraelBuitronD
Last active January 7, 2016 19:34
Show Gist options
  • Select an option

  • Save IsraelBuitronD/cf81474ecde98858261f to your computer and use it in GitHub Desktop.

Select an option

Save IsraelBuitronD/cf81474ecde98858261f to your computer and use it in GitHub Desktop.
GPG generation key
gpg --gen-key
gpg (GnuPG/MacGPG2) 2.0.22; Copyright (C) 2013 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Please select what kind of key you want:
(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)
Your selection? 1
RSA keys may be between 1024 and 8192 bits long.
What keysize do you want? (2048) 8192
Requested keysize is 8192 bits
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0) 10y
Key expires at Mon May 12 22:38:39 2025 CDT
Is this correct? (y/N) y
GnuPG needs to construct a user ID to identify your key.
Real name: Israel Buitrón
Email address: ibuitron@ipn.mx
Comment: Clave GPG de demostración
You are using the 'US-ASCII' character set.
You selected this USER-ID:
"Israel Buitrón (Clave GPG de demostración) <ibuitron@ipn.mx>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
gpg: conversion from 'US-ASCII' to 'utf-8' failed: Illegal byte sequence
You need a Passphrase to protect your secret key.
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: key 7C470660 marked as ultimately trusted
public and secret key created and signed.
gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 4 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 4u
gpg: next trustdb check due at 2015-08-18
pub 8192R/7C470660 2015-05-16 [expires: 2025-05-13]
Key fingerprint = A672 3445 6105 644D AF38 9D77 E80D B5C6 7C47 0660
gpg: conversion from 'utf-8' to 'US-ASCII' failed: Illegal byte sequence
uid Israel Buitrón (Clave GPG de demostración) <ibuitron@ipn.mx>
sub 8192R/8849B4D2 2015-05-16 [expires: 2025-05-13]
@foolip
Copy link
Copy Markdown

foolip commented Jan 7, 2016

You can probably fix the "Illegal byte sequence" warnings by adding charset utf-8 to ~/.gnupg/gpg.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment