Forum Discussion

msgTeam's avatar
12 years ago

Use Certificate of SmartCard for Client Certificate Auth

Hello Support Team,

we would like to use a certificate which is non-exportable stored on a hardware token (like a SmartCard) for a client certificate authentication.

Until now we tried this:
We used a Groovy script to get the certificate from the Windows Certificate store.
Whenever we want to acces the specific key, there is a popup which asks for the hardware token, so this works fine.

However, we did not find a way to use this keystore object in the following rest request teststep.
Is this possible using the API?

This is the Code to get the Keystores from the Windows Keystore:
import java.security.KeyStore

KeyStore ks = KeyStore.getInstance("Windows-MY");
ks.load(null, null);
def aliases = ks.aliases()

for(String alias:aliases){
def cert = ks.getCertificate(alias)
log.info(cert.toString())
}

regards,
Daniel

1 Reply

  • Hello,

    FYI, we do not support custom code solutions.


    If you have an API you can use to do authentication with the certificate in Groovy, you should be able to use that API in SoapUI Pro.



    Regards,
    Marcus
    SmartBear Support