This is an automated email from the ASF dual-hosted git repository.
mrutkowski pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/incubator-openwhisk-release.git
The following commit(s) were added to refs/heads/master by this push:
new a3410f2 Add the explanation to the PGP key configuration (#184)
a3410f2 is described below
commit a3410f20304cfff61c2d3270964f044f0c62c7a6
Author: Vincent <[email protected]>
AuthorDate: Wed Jun 13 13:48:53 2018 -0400
Add the explanation to the PGP key configuration (#184)
Closes: #88
---
docs/sign_artifacts.md | 12 +++++++++++-
tools/install_dependencies.sh | 3 ++-
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/docs/sign_artifacts.md b/docs/sign_artifacts.md
index 2d7758c..620b929 100644
--- a/docs/sign_artifacts.md
+++ b/docs/sign_artifacts.md
@@ -24,7 +24,7 @@ Each package needs to be accompanied by cryptographic
signatures according to Ap
## Generate the PGP key pair
You can either follow the [online PGP
instruction](https://support.symantec.com/en_US/article.HOWTO41935.html) to
generate the PGP key for your environment, or use our script to
-generate for you. First, you need to config _pgp_key_gen.conf_ under the
folder _tools_. Make sure you have the proper
+generate for you. First, you need to config
[_pgp_key_gen.conf_](../tools/pgp_key_gen.conf) under the folder _tools_. Make
sure you have the proper
Name-Real, Name-Comment, Name-Email, and Passphrase for your key. You do not
need to change Key-Type, Key-Length, and
Expire-Date. Run the following script under the folder _tools_:
@@ -32,6 +32,16 @@ Expire-Date. Run the following script under the folder
_tools_:
$ ./generate_pgp_key.sh
```
+The configuration to generate PGP key pair needs to be associated with an
identity. We use the following fields to define the identity:
+
+* **Name-Real:** the field to specify the name of the key with the default
value OpenWhisk Release Bot.
+* **Name-Comment:** the field to specify the description of the key.
+* **Name-Email:** the field to specify the email address of the key.
+* **Passphrase:** the field to specify the passphrase of the key.
+* **Key-Type:** the field to specify the type of the key. The default value is
RSA.
+* **Key-Length:** the field to specify the length of the key. The default
value is 4096.
+* **Expire-Date:** the field to specify the expiration date of the key. The
default value is 0, meaning the key will never expire.
+
## Sign the artifacts:
All the artifacts can be signed by running the following script under _tools_:
diff --git a/tools/install_dependencies.sh b/tools/install_dependencies.sh
index 74489b3..eeab195 100755
--- a/tools/install_dependencies.sh
+++ b/tools/install_dependencies.sh
@@ -23,6 +23,7 @@ if [ $sysOS == "Darwin" ];then
echo "This is MacOS."
brew install jq
brew install gpg
+ brew install wget
elif [ $sysOS == "Linux" ];then
echo "This is Linux."
if [ -f /etc/lsb-release -o -d /etc/lsb-release.d ]; then
@@ -32,7 +33,7 @@ elif [ $sysOS == "Linux" ];then
fi
if [ $DISTRO == "Ubuntu" ];then
echo "This is Ubuntu."
- sudo apt-get install jq gnupg expect
+ sudo apt-get install jq gnupg expect wget
fi
else
echo "Other OS: $sysOS. Please manually install jq library."
--
To stop receiving notification emails like this one, please contact
[email protected].