Skip to content

mkcert is slow on darwin (due to nss support) #135

Closed

Description

@crawshaw

On a MacBook Air 2018:

$ time (./mkcert -help &> /dev/null)

real	0m1.010s
user	0m0.657s
sys	0m0.309s

This is caused by the init function in truststore_nss.go, which invokes the brew command. If I comment out the init function:

$ time (./mkcert -help &> /dev/null)

real	0m0.025s
user	0m0.013s
sys	0m0.010s

Activity

  1. crawshaw commented on Feb 15, 2019

    @crawshaw
    ContributorAuthor

    When actually generating a key, there are other sources of slowness. Total generation time with nss removed is 1s. About 100ms of that is spent in generateKey.

    It seems to take mkcert 200ms to reach the beginning of the makeCert method.

  2. added a commit that references this issue on Jul 23, 2024
    8ff7350
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions