[GH-ISSUE #249] Add CA root to Insomnia #161

Open
opened 2026-02-25 22:32:46 +03:00 by kerem · 9 comments
Owner

Originally created by @gagaXD on GitHub (Mar 23, 2020).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/249

Hello,

After running a mkcert -install and generating certificates with it, It works fine on Chrome & Firefox.

But, when I'm trying to send a request with insomnia, It tells me that the certificate can not be trusted.

Is there any way to specify to mkcert other "db" where the rootCA must be installed with certutil ?

Thanks for this great package !

Originally created by @gagaXD on GitHub (Mar 23, 2020). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/249 Hello, After running a `mkcert -install` and generating certificates with it, It works fine on Chrome & Firefox. But, when I'm trying to send a request with [insomnia](https://insomnia.rest/), It tells me that the certificate can not be trusted. Is there any way to specify to mkcert other "db" where the rootCA must be installed with `certutil` ? Thanks for this great package !
Author
Owner

@francoism90 commented on GitHub (May 21, 2020):

@gagaXD Did you find a solution? I'm also keep getting the same issue with Insomnia.

<!-- gh-comment-id:631993670 --> @francoism90 commented on GitHub (May 21, 2020): @gagaXD Did you find a solution? I'm also keep getting the same issue with Insomnia.
Author
Owner

@alouini333 commented on GitHub (Jul 14, 2020):

You can disable certificate validation in the settings of Insomnia

<!-- gh-comment-id:658100096 --> @alouini333 commented on GitHub (Jul 14, 2020): You can disable certificate validation in the settings of Insomnia
Author
Owner

@FiloSottile commented on GitHub (Oct 25, 2020):

I'd be happy to add it to the supported DBs if someone can find out where the Insomnia's root store is.

<!-- gh-comment-id:716204080 --> @FiloSottile commented on GitHub (Oct 25, 2020): I'd be happy to add it to the supported DBs if someone can find out where the Insomnia's root store is.
Author
Owner

@FinlayDaG33k commented on GitHub (Nov 18, 2020):

Under the hood, Insomnia uses Curl with it's CA stored in your TEMP.
For me, this was C:\Users\Finlay\AppData\Local\Temp\insomnia_2020.4.2\2017-09-20.pem.
I don't know where it is on Linux or Mac but you can find it by making a request and looking at the timeline:
image

Hopefully this information will be of use :)
I don't know how to "include" additional certificates but maybe someone else knows.

<!-- gh-comment-id:730002645 --> @FinlayDaG33k commented on GitHub (Nov 18, 2020): Under the hood, Insomnia uses `Curl` with it's CA stored in your `TEMP`. For me, this was `C:\Users\Finlay\AppData\Local\Temp\insomnia_2020.4.2\2017-09-20.pem`. I don't know where it is on Linux or Mac but you can find it by making a request and looking at the timeline: ![image](https://user-images.githubusercontent.com/13424273/99596863-55518980-29f7-11eb-85c6-2c9db379eac8.png) Hopefully this information will be of use :) I don't know how to "include" additional certificates but maybe someone else knows.
Author
Owner

@Nightbr commented on GitHub (Mar 12, 2021):

Hey guys, seems there is an issue to improve insomnia and use OS CA certs when possible: https://github.com/Kong/insomnia/issues/1432

Another issue where someone ask to provide custom CA (one mention using Mkcert): https://github.com/Kong/insomnia/issues/675

Maybe we could ping them.

IMO: this is an issue with Insomnia which should provide a way to load custom root CA or load system root CA.

<!-- gh-comment-id:797337434 --> @Nightbr commented on GitHub (Mar 12, 2021): Hey guys, seems there is an issue to improve insomnia and use OS CA certs when possible: https://github.com/Kong/insomnia/issues/1432 Another issue where someone ask to provide custom CA (one mention using Mkcert): https://github.com/Kong/insomnia/issues/675 Maybe we could ping them. IMO: this is an issue with Insomnia which should provide a way to load custom root CA or load system root CA.
Author
Owner

@bNobo commented on GitHub (Nov 26, 2021):

Under the hood, Insomnia uses Curl with it's CA stored in your TEMP. For me, this was C:\Users\Finlay\AppData\Local\Temp\insomnia_2020.4.2\2017-09-20.pem. I don't know where it is on Linux or Mac but you can find it by making a request and looking at the timeline: image

Hopefully this information will be of use :) I don't know how to "include" additional certificates but maybe someone else knows.

Yes, you can edit the file with a text editor and add your certificates into it. I tried and it works. When the file exists Insomnia will use it directly. So it is a viable workaround but I think you'll have to re-edit the file each time Insomnia is updated.

<!-- gh-comment-id:980165719 --> @bNobo commented on GitHub (Nov 26, 2021): > Under the hood, Insomnia uses `Curl` with it's CA stored in your `TEMP`. For me, this was `C:\Users\Finlay\AppData\Local\Temp\insomnia_2020.4.2\2017-09-20.pem`. I don't know where it is on Linux or Mac but you can find it by making a request and looking at the timeline: ![image](https://user-images.githubusercontent.com/13424273/99596863-55518980-29f7-11eb-85c6-2c9db379eac8.png) > > Hopefully this information will be of use :) I don't know how to "include" additional certificates but maybe someone else knows. Yes, you can edit the file with a text editor and add your certificates into it. I tried and it works. When the file exists Insomnia will use it directly. So it is a viable workaround but I think you'll have to re-edit the file each time Insomnia is updated.
Author
Owner

@leocavalcante commented on GitHub (Jun 1, 2022):

Aha! Thank you very much for the hack. It works just like setting --cacert to regular curl CLI.

I just noticed there is a CApath, would be nice if Insomnia sets this path so we can just place our custom CA certs there instead of editing the one in temp.

<!-- gh-comment-id:1143609704 --> @leocavalcante commented on GitHub (Jun 1, 2022): Aha! Thank you very much for the hack. It works just like setting `--cacert` to regular `curl` CLI. I just noticed there is a `CApath`, would be nice if Insomnia sets this path so we can just place our custom CA certs there instead of editing the one in temp.
Author
Owner

@ghislain-bernard commented on GitHub (Sep 1, 2022):

Hi,

For latest versions 2022, the option to use the file 2017.09.20.pem is not possible anymore... :( and now it is impossible to use my own certificates from my private CA.

image

image

To use my private CA for server certificates, I disable the global option "Validate certificates" but it is not a good option.

image

I hope to use the CA system in future versions.

<!-- gh-comment-id:1234177148 --> @ghislain-bernard commented on GitHub (Sep 1, 2022): Hi, For latest versions 2022, the option to use the file 2017.09.20.pem is not possible anymore... :( and now it is impossible to use my own certificates from my private CA. ![image](https://user-images.githubusercontent.com/37534566/187907019-e6931137-5384-495b-b24e-b0613d4fba37.png) ![image](https://user-images.githubusercontent.com/37534566/187907062-6af251e1-3bbe-41bd-a150-5f86885953d0.png) To use my private CA for server certificates, I disable the global option "Validate certificates" but it is not a good option. ![image](https://user-images.githubusercontent.com/37534566/187907268-87392512-2dee-4815-8fb2-e971deba2070.png) I hope to use the CA system in future versions.
Author
Owner

@laszlolaszlo commented on GitHub (Jun 7, 2023):

It should be very good to able to use own Root CA in Insomnia. Thank you.

<!-- gh-comment-id:1580297208 --> @laszlolaszlo commented on GitHub (Jun 7, 2023): It should be very good to able to use own Root CA in Insomnia. Thank you.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mkcert#161
No description provided.