ContributionsMost RecentMost LikesSolutionsRe: How do I get TC to recognize Certificates? Hello TanyaYatskovska , i have asked a few questions on this topic and the solution that have been proposed appear to be reasonable and things that I had already tried. It was nice to have confirmation that what I was doing was correct. But.... None of the solutuons at this time have resolved my issue. I may need to get the certs moved into the correct location through Admin Privileges. Thank you Andrew How do I get TC to recognize Certificates? Hello, I am trying to get TC to recognize Certificates for SSL. I have a JKS file but I also have the 3 CER files that exist in the JKS file. What I am curious to know is.... - What is the path I need to add the CER file so that TC can recognize them? - Do I need to use the code below to get TC to pull them in? - Can I set something in the Preferences to find the path of the CERT's? - Is there a better or different format to put the cert's in, other than .cer? Suggestions or Comments? function CertificateInfoSample() { var fileName = Sys.Process("iexplore").Path; // Specify the file name here //var fileName = Sys.Process("TestComplete").Path; // Specify the file name here //var fileName = "C:\\AuthKey_ADB\\clientcert.jks"; // Specify the file name here var certInfo = aqFileSystem.GetFileInfo(fileName).CertificateInfo; Log.Message("Version: " + certInfo.Version); Log.Message("Serial number: " + certInfo.SerialNumber); Log.Message("Signature algorithm: " + certInfo.Algorithm); Log.Message("Issuer: " + certInfo.Issuer); Log.Message("Valid from: " + aqConvert.DateTimeToFormatStr(certInfo.NotBefore, "%#c")); Log.Message("Valid to: " + aqConvert.DateTimeToFormatStr(certInfo.NotAfter, "%#c")); Log.Message("Subject: " + certInfo.Subject); Log.Message("Public key: " + certInfo.PublicKey); } Re: How do I enable SSL in TestComplete Hello AlexKaras , I believe I have imported the Certificate into the correct location through IE. Although I believe the company already had them set. Here is an ERROR that I am receiving. How can I be sure that TC is grabbing the correct cert, or which cert, or what cert location it is connecting to? Error: No credentials were available in the client certificate Re: How do I enable SSL in TestComplete AlexKaras , We are using both types. aqHttpRequest.SetHeader("Authorization", "Basic " + credentials); I believe this Authorization is used for LDAP with a un/pw and the other is for the HTTPS and a secure handshake from client to server. I see in SOAPUI it is straight forward to add the SSL cert into the Preferences and also add Basic Authentication to the header but in TC I can add the Basic Auth into the header through the aqHttpRequest but the CERT is not so straight forward. Can i assume that the CERT could be added to IE or someother location where certicates are read from? If true how does it know the password. Is the file system just set up to handle it if the cert is in the correct location? Andrew Re: How do I enable SSL in TestComplete AlexKaras Thank you for responding OK. Here is the code where the Authentication happens within the Header but I believe I need help with a different layer and that is trying to figure out how to get the certificate to be read. Here is the TC ERROR "An unknown error occurred while processing the certificate." How do I install the certificate and do I need a proxy? The certificate is currently just sitting on my C: drive What do you mean by setting up the infrastructure? Is this adding something to the default browser or possibly in TC itself? try { RequestType = aqString.ToUpper(WebServiceData["ServiceType"]); // Create an aqHttpRequest object var aqHttpRequest = !equal(WebServiceData["UserName"],undefined) ? aqHttp.CreateRequest(RequestType, WebServiceData["Address"], WebServiceData["UserName"], WebServiceData["Password"]) : aqHttp.CreateRequest(RequestType, WebServiceData["Address"]); // Specify the Content-Type header value aqHttpRequest.SetHeader("Content-Type", "application/" + aqString.ToLower(ContentType)); aqHttpRequest.SetHeader("Accept", "application/" + aqString.ToLower(ContentType)); //Added for Authentication var credentials = aqConvert.VarToStr(dotNET.System.Convert.ToBase64String (dotNET.System_Text.Encoding.UTF8.GetBytes_2(Project.Variables.SSL_Login + ":" + Project.Variables.SSL_Password))); aqHttpRequest = aqHttp.CreateGetRequest(WebServiceData["Address"]); aqHttpRequest.SetHeader("Authorization", "Basic " + credentials); aqHttpRequest.SetHeader("X-Request-Id", "Andrew"); // Send the request, get an aqHttpResponse object var aqHttpResponse = (equal(RequestData,"")) ? aqHttpRequest.Send() : aqHttpRequest.Send(RequestData); How do I enable SSL in TestComplete I am trying to enable SSL in TestComplete but I am stuck. Note: We are not using ReadyAPI nor are we using SOAPUI for generating our tests. Although I do have both working with SSL enabled. The direction of our development is through TestComplete and we are not using the ReadyAPI or Webservices module within TC. I am able to set up the aqHTTP authentication on each service but I am stuck and how to use and get access to the local Certificate. Suggestions or comments? Re: Your thoughts about a REST API in TestComplete We started down the path of ReadyAPI but have just since decide to posibly pulled the plug on it. Since we are use TC with the ReadyAPI plug-in, It would have been nice to have better stats capabilities, access to send dynamic data instead of the static Global/System parameters, also better logic handling on Assertions(if/else). We have decide to use TC exclusively to generate dynamic REST calls and handle all checkpoints and stats. This is more inline with the rest of our UI interfaces and WebServices. Re: Set a JSONPath expression parameter from a datasource Is there a way to wrap some logic around this to say if the record does not exist then skip? The is an outer join in the DB query which means that sometimes there may not be any data and I would not want the Assertion to trigger. Suggestions? Re: Set a JSONPath expression parameter from a datasource See image. I am trying to parameterize these value from the image Re: Set a JSONPath expression parameter from a datasource Weird. I will have to look in a bit