Using SelfSSL with Commerce Server 2007

You may experience the following error when connecting to Orders or Profiles Web Service:

Exception
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

Inner Exception
{"The remote certificate is invalid according to the validation procedure."}

This is due to no correctly adding the certificate to the Trusted Certificate. Try the following command line for the SelfSSL:
selfssl.exe /N:CN<your computer Name> /K:1024 /T /V:365 /S:1 /P:443