Forum Discussion
TanyaYatskovska
SmartBear Alumni (Retired)
CrazyFrog
6 years agoContributor
Hello casp8
First you need to add a keystore to your project, you can do this with the following code:
DefaultWssContainer wssContainer = wsdlOperation.getProject().getWssContainer();
wssContainer.addCrypto([KEYSTORE_PATH] + [certificateName],[password], CryptoType.KEYSTORE);
With this way you can add multiple certificates to your keystore.
After this you can select for every teststep a different keystore.
I use the following code therefore:
public static void addCertificateToTeststep(WsdlTestRequestStep testStep, String certificateName){
testStep.getTestRequest().setSslKeystore(certificateName);
}
regards,
CrazyFrog :)
Related Content
- 9 years ago
- 2 years ago
Recent Discussions
- 5 days ago
- 10 days ago