Commit bcd21fb 1 parent d21d4f6 commit bcd21fb Copy full SHA for bcd21fb
File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ function remove() {
19
19
}
20
20
21
21
function generate() {
22
+ echo "Generation key pair..."
22
23
keytool \
23
24
-genkeypair \
24
25
-alias "$ALIAS" \
@@ -31,8 +32,13 @@ function generate() {
31
32
-storeType PKCS12 \
32
33
-storepass "$PASSWORD"
33
34
34
- openssl pkcs12 -in "$KEYSTORE" -nocerts -out "$ALIAS-private.pem"
35
- openssl pkcs12 -in "$KEYSTORE" -nokeys -out "$ALIAS-public.pem"
35
+ echo "Exporting a private key..."
36
+ openssl pkcs12 -in "$KEYSTORE" -nocerts -out "$ALIAS-private.pem" \
37
+ -passin pass:"$PASSWORD" -passout pass:"$PASSWORD"
38
+
39
+ echo "Exporting a public key..."
40
+ openssl pkcs12 -in "$KEYSTORE" -nokeys -out "$ALIAS-public.pem" \
41
+ -passin pass:"$PASSWORD" -passout pass:"$PASSWORD"
36
42
37
43
copy "$KEYSTORE"
38
44
copy "$ALIAS-private.pem"
You can’t perform that action at this time.
0 commit comments