Forum Discussion

thilakasiri1978's avatar
thilakasiri1978
Occasional Contributor
11 years ago

VB Error "The client certificate is not provided. Specify a client certificate in client credentials"

Hi,

When I try to call the web service I'm getting the below vb error.

Error: ' the client certificate is not provided. Specify a client certificate in client credentials'



But in my local machine I have install the relevant client certificate ("tempClientCert"). I have use the below code and appreciate your response.



Code :

Set MyWebService = WebServices.WebService_Fee

Set Crd = MyWebService.Credentials

  ' Obtain the client certificate object

   Set Certificate = Crd.ClientCertificate

   ' Defines the client certificate

  Call Certificate.SetCertificateEx(slLocalMachine, snMy, ftFindBySubjectName, "tempClientCert")



  set ResMail = MyWebService.GetCustomerSavings(1,"55")
  • Hi Surendra,

     


    Make sure that the client credential is specified in the client configuration:


     




    <clientCredentials>


       <clientCertificate findValue="tempClientCert" 


                                 storeLocation="LocalMachine"


                                 storeName="TrustedPeople"


                                 x509FindType="FindBySubjectName" />


    </clientCredentials>



  • thilakasiri1978's avatar
    thilakasiri1978
    Occasional Contributor

    Thanks for the reply. 


    But those details are already available in the web.config file. This site is a https site (https://XXXXXXXXX/XXXService.svc?wsdl) . Is it the issue ?

  • Hi Surendra,

     


    The HTTPS protocol is officially supported in TestComplete 10.30.


    I would suggest that you contact our Support team to investigate this situation. Please provide them with the path to the service if it's available on the Internet.