Last post Jan 06, 2014 05:17 AM by asumail eu
Dec 20, 2013 10:06 AM|asumail eu|LINK
I am re writing part of a java application in vb.net on a new machine, the java app sets truststore and keystore properties before calling a web service, what is the equivalent of setting the truststore and keystore in .Net?
Will the jks files work in .Net or do they need to be converted to another type and if so how is this done?
Any sample code would be great?
Dec 22, 2013 09:18 AM|kushalrdalal|LINK
Check this link-
Dec 30, 2013 05:30 AM|asumail eu|LINK
Hi - I tried to use the code specified in one of the links after converteing to vb.net
Dim service As New wsReferenceClient()
Dim cert As New X509Certificate2()
cert.Import("Client.pfx", "<the password>", DefaultKeySet)
The complier is saying that type wsReferenceClient is not defined so I changed the wsReferenceClient to the service name
ServiceReference1.PortalClient which is the service I am trying to access but it is now giving the compile error
'ClientCertificates' is not a member of ServiceReference1.PortalClient, there does seem to be a clientcredentials member
Is the syntax different for vb.net or am I missing something else?
Jan 03, 2014 10:28 AM|kushalrdalal|LINK
Check this link -
the service you are using
Could you check that your service does have support for that or not? Are you using your own service or some other party's service?
Jan 06, 2014 05:17 AM|asumail eu|LINK
I ran the keytool command to convert the jks file to pfx and loaded it through the mmc snap in, the error I am now getting when running the service is
Do I need to load the certificate through the code aswell and what is the command to do this?