We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec3de30 commit a060208Copy full SHA for a060208
generate_winrm_client_cert_self_signed.sh
@@ -6,8 +6,6 @@ UPN=$USER_NAME@localhost
6
SUBJECT="/CN=$USER_NAME"
7
8
PFX_FILE=winrm_client_cert.pfx
9
-PFX_PASSWORD=Passw0rd
10
-
11
PEM_FILE=winrm_client_cert.pem
12
13
PRIVATE_DIR=`mktemp -d -t cloudbase-initXXXXXX`
@@ -33,8 +31,9 @@ openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -out $PEM_FILE \
33
31
rm $EXT_CONF_FILE
34
32
unset OPENSSL_CONF
35
36
-openssl pkcs12 -export -in $PEM_FILE -inkey $KEY_FILE -out $PFX_FILE \
37
--password pass:$PFX_PASSWORD
+# This will ask for an export password.
+# To avoid it, add: -password pass:yourpassword
+openssl pkcs12 -export -in $PEM_FILE -inkey $KEY_FILE -out $PFX_FILE
38
39
rm -rf $PRIVATE_DIR
40
0 commit comments