Skip to content

Commit a060208

Browse files
committedDec 16, 2013
Adds pfx password request
1 parent ec3de30 commit a060208

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎generate_winrm_client_cert_self_signed.sh

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ UPN=$USER_NAME@localhost
66
SUBJECT="/CN=$USER_NAME"
77

88
PFX_FILE=winrm_client_cert.pfx
9-
PFX_PASSWORD=Passw0rd
10-
119
PEM_FILE=winrm_client_cert.pem
1210

1311
PRIVATE_DIR=`mktemp -d -t cloudbase-initXXXXXX`
@@ -33,8 +31,9 @@ openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -out $PEM_FILE \
3331
rm $EXT_CONF_FILE
3432
unset OPENSSL_CONF
3533

36-
openssl pkcs12 -export -in $PEM_FILE -inkey $KEY_FILE -out $PFX_FILE \
37-
-password pass:$PFX_PASSWORD
34+
# This will ask for an export password.
35+
# To avoid it, add: -password pass:yourpassword
36+
openssl pkcs12 -export -in $PEM_FILE -inkey $KEY_FILE -out $PFX_FILE
3837

3938
rm -rf $PRIVATE_DIR
4039

0 commit comments

Comments
 (0)
Please sign in to comment.