In order to access to the web service I need a certificate.
I generated my certs:
openssl genrsa 1024 > private.key openssl req -new -x509 -nodes -sha
You have a constructor with a byte[]. So you can store your certificate as a byte array and load your certificate with
public X509Certificate2( byte[] rawData )
link: http://msdn.microsoft.com/en-us/library/ms148413%28v=VS.100%29.aspx