[GH-ISSUE #286] Azure DevOps Pipelines: Installing local CA via PowerShell hangs #185

Closed
opened 2026-02-25 22:32:49 +03:00 by kerem · 5 comments
Owner

Originally created by @fenton-nick on GitHub (Aug 24, 2020).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/286

I've installed mkcert in an Azure Pipeline windows VM via Chocolatey. However, installing the local CA via PowerShell hangs. I can't find anything significant in the logs for this pipeline task. I have to manually cancel the run after about 5 minutes.

mkcert -install
Created a new local CA at "/home/circleci/.local/share/mkcert" 💥 <--- agent hangs right here
Originally created by @fenton-nick on GitHub (Aug 24, 2020). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/286 I've installed mkcert in an Azure Pipeline windows VM via Chocolatey. However, installing the local CA via PowerShell hangs. I can't find anything significant in the logs for this pipeline task. I have to manually cancel the run after about 5 minutes. ``` mkcert -install Created a new local CA at "/home/circleci/.local/share/mkcert" 💥 <--- agent hangs right here ```
kerem 2026-02-25 22:32:49 +03:00
Author
Owner

@fenton-nick commented on GitHub (Aug 24, 2020):

Could this be caused by the security warning the pops up when installing a cert for the CA? If so, I'm not sure how this could be avoided.

image

<!-- gh-comment-id:679421044 --> @fenton-nick commented on GitHub (Aug 24, 2020): Could this be caused by the security warning the pops up when installing a cert for the CA? If so, I'm not sure how this could be avoided. ![image](https://user-images.githubusercontent.com/4750903/91107045-50707a00-e642-11ea-8906-7f2c7900bf59.png)
Author
Owner

@fenton-nick commented on GitHub (Aug 25, 2020):

Unfortunately, I had to go with a pure PowerShell (New-SelfsignedCertificate) approach in order to make integration tests run in a Windows based CI vm.

<!-- gh-comment-id:680050053 --> @fenton-nick commented on GitHub (Aug 25, 2020): Unfortunately, I had to go with a pure PowerShell (New-SelfsignedCertificate) approach in order to make integration tests run in a Windows based CI vm.
Author
Owner

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

Yeah, I don't know of any way to avoid the warning when running -install. Does your PowerShell approach install a system root or just generate a certificate? If the latter, you can just skip -install and use mkcert. If the former, I am curious how it bypasses the dialog.

<!-- gh-comment-id:716183546 --> @FiloSottile commented on GitHub (Oct 25, 2020): Yeah, I don't know of any way to avoid the warning when running `-install`. Does your PowerShell approach install a system root or just generate a certificate? If the latter, you can just skip `-install` and use mkcert. If the former, I am curious how it bypasses the dialog.
Author
Owner

@fenton-nick commented on GitHub (Nov 10, 2020):

It does install a Root CA certificate.

<!-- gh-comment-id:724927671 --> @fenton-nick commented on GitHub (Nov 10, 2020): It does install a Root CA certificate.
Author
Owner

@kaylumah commented on GitHub (Aug 26, 2022):

@fenton-nick can you share your script?

<!-- gh-comment-id:1228399828 --> @kaylumah commented on GitHub (Aug 26, 2022): @fenton-nick can you share your script?
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#185
No description provided.