By default VMware
provides you a certificate in the .NET SSO samples directory which is not
password protected. Use this procedure to replace the certificate if you are
running Windows 8 or earlier.
You choose to replace the
default certificate supplied with the SDK, at
SDK/ssoclient/dotnet/cs/samples/certificate.
Prerequisites
This procedure applies to
Windows 8 or earlier.
Procedure
-
Open a Visual
Studio Developer command prompt, running as Administrator.
-
Change to the .NET SSO
samples directory.
cd
installed_directory/SDK/ssoclient/dotnet/cs/samples
-
Delete the default
certificate provided by VMware.
del
*.pfx *.cer
-
Use the
makecert command to
generate a new certificate file.
makecert -r -pe -n
"CN=*.vmware.com, OU=Ecosystem Engineering, O=\"VMware, Inc.\", L=Palo Alto,
ST=California, C=US" -sky exchange -sv certificate\testssoclient.pvk
certificate\testssoclient.cer
-
Convert the certificate
file to a
.pfx format.
pvk2pfx -pvk
certificate\testssoclient.pvk -spc certificate\testssoclient.cer -pfx
certificate\testssoclient.pfx
-
Delete the
.pvk and
.cer files, which are
no longer needed.
del certificate\testssoclient.pvk
del certificate\testssoclient.cer
What to do next
Run the .NET SSO samples,
using your new certificate.