Skip to content

Commit e0e6634

Browse files
Update data-box-gateway-upload-certificate.md
Updated the example based on the input from Bobby Sincero
1 parent f67ce96 commit e0e6634

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

includes/data-box-gateway-upload-certificate.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@ A proper SSL certificate ensures that you're sending encrypted information to th
1818
The following example shows the usage of this cmdlet:
1919

2020
```
21-
Set-HcsCertificate -Scope LocalWebUI -CertificateFilePath "\\myfileshare\certificates\mycert.pfx" -CertificatePassword "mypassword" -Credential "Username"
21+
$pwd="<CertificatePassword>"
22+
$password=ConvertTo-SecureString -String $pwd -AsPlainText -Force
23+
$cred=New-Object System.Management.Automation.PSCredential('Administrator',$password)
24+
25+
Set-HcsCertificate -Scope LocalWebUI -CertificateFilePath \\myfileshare\certificates\mycert.pfx -CertificatePassword $cred -Credential "Username"
2226
```

0 commit comments

Comments
 (0)