Azure / Azure/static-web-apps-cli

SWA CLI localhost certificate can not trust

Open
#894 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
668
Forks
156
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

SWA CLI default SSL certificate is wrong. SWA CLI provide `--ssl` option, but I can't access ssl site because SWA CLI certificate is not trusted. (fig.1)
And I get still error after trust SWA CLI localhost certificate. I guess SWA CLI certificate not have server auth OID (1.3.6.1.5.5.7.3.1) in EKU. (fig. 2)

**Describe the solution you'd like**

Add server/client auth to EKU of SWA CLI certificate like as ASP.NET Core localhost certificate.

**Describe alternatives you've considered**

Currentlly, I should use `--ssl-key` and `--ssl-cert` option with `--ssl` and own localhost certificate. (this is very troublesome.)

**Additional context**

fig.1
![Image](https://github.com/user-attachments/assets/48648064-5370-43b1-94fd-70698ae44e66)

fig. 2
![Image](https://github.com/user-attachments/assets/79c10317-317e-4fad-adb5-a4c92daca5a1)

- SWA CLI version: 2.0.1
- OS: Windows 11 x64

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.