Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Extended Key Usage #504

Open
efa2d19 opened this issue Feb 6, 2023 · 2 comments
Open

Missing Extended Key Usage #504

efa2d19 opened this issue Feb 6, 2023 · 2 comments

Comments

@efa2d19
Copy link

efa2d19 commented Feb 6, 2023

Environment

  • Operating system (including version): MacOS 13.1
  • mkcert version (from mkcert -version): v1.4.4
  • Server (where the certificate is loaded): Locally
  • Client (e.g. browser, CLI tool, or script): Proxyman

What you did

  • mkcert -install
  • added root ca to Proxyman
  • launched Proxyman

What went wrong

Basically nothing, everything still works fine, but Proxyman always throws an error in my face at launch

It turns out that EKU is required for MacOS ≥10.15 link to apple article

EKU_proxyman

@lublak
Copy link

lublak commented Mar 3, 2023

@drugsosos i think only ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}, should also work.
Based on this description: TLS server certificates must contain an ExtendedKeyUsage (EKU) extension containing the id-kp-serverAuth OID.

@goldstar611
Copy link

I think you just skipped a step of generating a leaf cert after you generated the CA cert because it kind of looks like you're using your root CA as your server certificate.

You'll find x509.ExtKeyUsageServerAuth in both makeCert and makeCertFromCSR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants