Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

注意,在这个过程中,(1)输入名字时应该输入真实姓名;(2)使用邮箱时应该使用apache邮箱。(3) 注意名字要使用拼音或者英文否则会出现乱码

Code Block
languagebash
title生成 gpg key
collapsetrue
$ gpg2 --full-gen-key
gpg (GnuPG) 2.2.4; Copyright (C) 2017 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
注意:这里输入1
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048) 4096
注意:这里输入4096
Requested keysize is 4096 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) 0
注意:这里输入0
Key does not expire at all
Is this correct? (y/N) y
注意:这里输入y
GnuPG needs to construct a user ID to identify your key.

Real name: your name
注意:这里输入你的名字
Email address: someone@apache.org
注意:这里输入你的邮箱
Comment: Apache IoTDB release signing key
注意:这里输入一些注释
You selected this USER-ID:
    "your name (Apache IoTDB release signing key) <someone@apache.org>"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
注意:这里输入O
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.
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.

...

接下来手动上传上述内容,上传链接  http://keys.gnupg.net


到现在应该能查到了。。。


c.2 (可选)寻找你认识的Apache社区的Committer来给你的公钥认证寻找你认识的Apache社区的Committer来给你的公钥认证

参考链接 https://gist.github.com/F21/b0e8c62c49dfab267ff1d0c6af39ab84 主要都是对方有事情要做,所以就不详细解释了。

可以找黄向东,刘大伟,乔佳林帮你签名


d. 将你的gpg 公钥加入KEYS文件中

这个步骤需要使用SVN。MacOS已经默认安装了SVN。

...

$ svn ci -m "add gpg key for YOUR_NAME"

这里注意检查一下你追加到 KEYS 里的东西千万不要有中文


e. 修改你的maven 设置

假设你的maven本地仓库地址是 ~/.m2。

...