Skip to content

Add a test for HTTPS proxy #581

Closed
@jirimoravcik

Description

@jirimoravcik

We recently added a new option ignoreProxyCertificate. We should add tests covering it.

How to do it (roughly):

  1. Run a plain Node.js HTTP server that would just return Hello world.
  2. Use e.g. https://www.npmjs.com/package/local-ssl-proxy to wrap the server with a self-signed SSL certificate.
  3. Run a proxy-chain server that would point to the HTTPS endpoint created in 2.
  4. Send a normal request via the proxy-chain proxy.
  5. If ignoreProxyCertificate is set to true, you should get Hello world, otherwise you'll get a SSL error about being unable to verify the leaf signature.

Metadata

Metadata

Assignees

Labels

backendIssues related to the platform backend.good first issueGood for newcomers.low priorityLow priority issues to be done eventually.t-platformIssues with this label are in the ownership of the platform team.validatedIssues that are resolved and their solutions fulfill the acceptance criteria.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions