Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add client certificate to openTest #611

Open
minhn670 opened this issue Mar 3, 2023 · 1 comment
Open

How to add client certificate to openTest #611

minhn670 opened this issue Mar 3, 2023 · 1 comment

Comments

@minhn670
Copy link

minhn670 commented Mar 3, 2023

hi I used Opentest to verify the API response .
For the normal api , it works fine.

Host:
..***.ibm.com

P12 certificate
Passcode

But with the website requires authentication through client certificate P12 , it does not work.
How do I add these params to opentest ?

Thank you for your time

@adrianth
Copy link
Contributor

adrianth commented Mar 23, 2023

You'll need to use version 1.4.1 of OpenTest, which is currently published in beta. You can install with this command:

npm install -g opentest@beta

Please note that if you omit the @beta suffix, the version that will get installed is 1.3.8, as this is the one that is currently tagged as the latest version.

Once you've upgraded to OpenTest 1.4.1, you can use a client certificate like this:

- description: ...
  action: org.getopentest.actions.HttpRequest
  args:
    url: https://example.com
    verb: GET
    clientCertificate: C:\path\to\certificate.p12
    clientCertificatePassword: p12_file_password

Let me know if this worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants