@@ -9,14 +9,15 @@ Cosign requires simple initial setup of the signer keys described more precisely
9
9
10
10
``` bash
11
11
# install cosign
12
- COSIGN_VERSION=" v1.13.1 " && \
12
+ COSIGN_VERSION=" v2.0.0 " && \
13
13
if [[ " $( uname -m) " == * " ar" * ]] ; then ARCH=" arm64" ; else ARCH=" amd64" ; fi && echo $ARCH && \
14
14
PLATFORM=$( uname) && FILE=$( echo " cosign-${PLATFORM} -${ARCH} " | tr ' [:upper:]' ' [:lower:]' ) && \
15
15
wget https://github.com/sigstore/cosign/releases/download/${COSIGN_VERSION} /$FILE && chmod +x -v ./$FILE && \
16
16
mv -fv ./$FILE /usr/local/bin/cosign && cosign version
17
17
18
18
# save KIRA public cosign key
19
- cat > ./cosign.pub << EOL
19
+ KIRA_COSIGN_PUB=/usr/keys/kira-cosign.pub && mkdir -p $KIRA_COSIGN_PUB && \
20
+ cat > ./cosign.pub << EOL
20
21
-----BEGIN PUBLIC KEY-----
21
22
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE/IrzBQYeMwvKa44/DF/HB7XDpnE+
22
23
f+mU9F/Qbfq25bBWV2+NlYMJv3KvKHNtu3Jknt6yizZjUV4b8WGfKBzFYw==
26
27
# download desired files and the corresponding .sig file from: https://github.com/KiraCore/tools/releases
27
28
28
29
# verify signature of downloaded files
29
- cosign verify-blob --key=./cosign.pub --signature=./< file> .sig ./< file>
30
+ # NOTE: You might need insecure-ignore-tlog and/or insecure-ignore-sct if you verify old signatures from before v2.0.0
31
+ cosign verify-blob --key=./cosign.pub --signature=./< file> .sig ./< file> --insecure-ignore-tlog --insecure-ignore-sct
30
32
```
31
33
32
34
## bash-utils
33
35
34
- KIRA bash-utils is a general purpose tool for simplifying scripts & commands
36
+ KIRA bash-utils (BU) is a general purpose tool for simplifying scripts & commands
35
37
36
38
``` bash
37
39
# one line install
38
- TOOLS_VERSION=" v0.3.4" && mkdir -p /usr/keys && FILE_NAME=" bash-utils.sh" && \
39
- if [ -z " $KIRA_COSIGN_PUB " ] ; then KIRA_COSIGN_PUB=/usr/keys/kira-cosign.pub ; fi && \
40
- echo -e " -----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE/IrzBQYeMwvKa44/DF/HB7XDpnE+\nf+mU9F/Qbfq25bBWV2+NlYMJv3KvKHNtu3Jknt6yizZjUV4b8WGfKBzFYw==\n-----END PUBLIC KEY-----" > $KIRA_COSIGN_PUB && \
40
+ TOOLS_VERSION=" v0.3.36" && cd /tmp && FILE_NAME=" bash-utils.sh" && \
41
41
wget " https://github.com/KiraCore/tools/releases/download/$TOOLS_VERSION /${FILE_NAME} " -O ./$FILE_NAME && \
42
42
wget " https://github.com/KiraCore/tools/releases/download/$TOOLS_VERSION /${FILE_NAME} .sig" -O ./${FILE_NAME} .sig && \
43
- cosign verify-blob --key=" $KIRA_COSIGN_PUB " --signature=./${FILE_NAME} .sig ./$FILE_NAME && \
43
+ cosign verify-blob --key=" $KIRA_COSIGN_PUB " --signature=./${FILE_NAME} .sig ./$FILE_NAME --insecure-ignore-tlog && \
44
44
chmod -v 555 ./$FILE_NAME && ./$FILE_NAME bashUtilsSetup " /var/kiraglob" && . /etc/profile && \
45
45
echoInfo " Installed bash-utils $( bashUtilsVersion) "
46
46
```
47
+
48
+ ## bip39gen
49
+
50
+ A simple and secure bip39 words generator that is able to mix computer and human provided entropy
51
+
52
+ ``` bash
53
+ # once BU is installed, you can easily and securely install all tools for a relevant architecture and platform
54
+ # one line install with verification of IPFS CID referencing a public key used to sign the release
55
+ TOOLS_VERSION=" v0.3.36" && TOOL_NAME=" bip39gen" && cd /tmp && \
56
+ bu safeWget ./${TOOL_NAME} .deb " https://github.com/KiraCore/tools/releases/download/$TOOLS_VERSION /${TOOL_NAME} -$( getPlatform) -$( getArch) .deb" \
57
+ " QmeqFDLGfwoWgCy2ZEFXerVC5XW8c5xgRyhK5bLArBr2ue" && rm -rfv ./$TOOL_NAME && dpkg-deb -x ./${TOOL_NAME} .deb ./$TOOL_NAME && \
58
+ cp -fv ./$TOOL_NAME /bin/$TOOL_NAME /usr/local/bin/$TOOL_NAME && chmod +x " /usr/local/bin/$TOOL_NAME " && \
59
+ rm -rfv ./$TOOL_NAME ./${TOOL_NAME} .deb
60
+
61
+ # Check bip39gen version
62
+ bip39gen version
63
+ ```
0 commit comments