`insomnia` request results in "Error: SSL peer..." | while copied `curl` (from insomnia) works
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
**Describe the bug**
Get the following error:
"Error: SSL peer certificate or SSH remote key was not OK"
When making a request using insomnia while making the same request using curl works (the curl command was copied from insomnia)
**To Reproduce**
Steps to reproduce the behavior:
1. setup a get request in insomnia
2. send the request
3. returns an error "Error: SSL peer certificate or SSH remote key was not OK"
4. right click on the request name (in the navigation panel)
5. select "Copy as Curl"
6. paste the curl command into the terminal and press enter
7. observe the curl command succeeds as expected
**Expected behavior**
Insomnia should be able to make the request as the curl command in the terminal
**Screenshots**
(can't due to sensitive data)
**Desktop (please complete the following information):**
- OS: macOS 10.15.5
- Installation Method: directly from insomnia.rest
- App Version Version 2020.2.2 (2020.2.2)
**Additional context**
All other requests work as expected except to one service (specific internal at work)
The Exact same request worked fine in the previous version of insomnia (can't remember the version number)
Contributor guide
Research direction
Start by reproducing the GET request in Insomnia on macOS and compare it with the copied curl command, using the reported SSL peer certificate error as the failure condition. Confirm that the request succeeds in curl and determine whether the Insomnia request also succeeds against other services; done means the affected service works in Insomnia as it did in the earlier version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, typescript
- Domain
- api, desktop, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100