Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Certificates import #213

Open
LYDE1234 opened this issue Jun 22, 2021 · 2 comments
Open

Certificates import #213

LYDE1234 opened this issue Jun 22, 2021 · 2 comments

Comments

@LYDE1234
Copy link

LYDE1234 commented Jun 22, 2021

Could you give an example of how to use the Certificates option in targetConfiguration? Ideally a sample since I cant find any documentation, issue, or sample that shows how to use certificates import.

@stishkin
Copy link
Contributor

stishkin commented Jun 22, 2021

@LYDE1234

Do you need this for running with Dredd ? As discussed in the bug #195 that you opened. Dredd does not support self-signed certificates yet.
Would disabling certificate validation would work better for you ?

If you want to use it with RESTler - then that will work.

You need a to mount a your folder with certificates, and the pass that mount path in certificates configuration property.

{
  "rootFileshare": "<fileShareName>",
  "namePrefix": "<fileShareName>-fuzz-",

  "readOnlyFileShareMounts": [
    {
      "FileShareName": "swagger-files",
      "MountPath": "/swagger-files"
    },
    {
      "FileShareName" : "certificates",
      "MountPath" : "/my-certs"
    }
  ],

  "testTasks" : {
    "targetConfiguration" : {
      "endpoint": "<EndPoint>",
      "certificates" : ["/my-certs"]
    },

    "tasks": [
      {
        "toolName": "RESTler",
        "outputFolder": "RESTler-fuzz-0",
        "toolConfiguration": {
          "task": "TestFuzzLean",
          "runConfiguration": {
            "inputFolderPath": "/job-compile/<compile.jobID>/RESTler-compile",
            "useSsl": true
          }
        }
      }
     ]
}

@LYDE1234
Copy link
Author

We need this for RESTler and your example helps; I'd still like a sample but this is fine for now. Thanks.

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

No branches or pull requests

2 participants