May be your code work while you are testing from your local host, but when you upload to your server you recieve: An internal error occurred.
Tell him to use your local key store for the private key:
X509Certificate2 cert = new X509Certificate2(”myhost.pfx”, “password”,X509KeyStorageFlags.MachineKeySet);
