How to set a certificate for a API request

I have a test case where I need to send a message to an SOAP API that requires a client side ssl certificate. Is there any way to do it in Katalon or in the groovy script itself.

4 Likes

KunalGulia,

Katalon Studio has not supported the feature yet. I will move this post to New Feature/Suggestion box.

Certificate for an API request would be great.

We agree on this as a lot of application use https!!

Yes, for us it would be awesome!!!

Any news on this request? I can’t continue with my test cases until I can resolve the 403 error as I cannot pass a certificate and password to the web service. Looks like I might have to use another software.

I got this problem and can not test my webservice

Unable to resolve imported document at ‘https://gateway2pi.union.net’.: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

Hi @Brian_Ducson,

Any update on same?
Connecting to SSL enabled MongoDB with following class:
public class Dbconnection {

@Keyword

def mongoInitialize(String ClientURI){

try{
MongoClientURI uri = new MongoClientURI(ClientURI);
MongoClient mongoClient = new MongoClient(uri);

MongoDatabase database = mongoClient.getDatabase(“core”);
MongoCollection<Document> collection = database.getCollection(“transactions”);
// Document myDoc = collection.find().first();
System.out.println(‘this is me’ + collection.count());
}catch(Exception e) {
System.out.println(“Unable to connect to MongoDB”);
System.out.println(e.getMessage());
System.exit(1);
}
}
}

error is PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target}, caused by {sun.security.validator.ValidatorException

Hi folks,

SSL Client Certificate is supported for Katalon Studio Enterprise users. For feature requests other than this, please open a new topic.

Jass