Azure / Azure/static-web-apps-cli
SWA CLI localhost certificate can not trust
- 主要言語
- TypeScript
- スター
- 668
- フォーク
- 156
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
**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

fig. 2

- SWA CLI version: 2.0.1
- OS: Windows 11 x64
コントリビューションガイド
調査の方向性
まず、SWA CLI の --ssl における証明書の処理を追跡します。これには、issue で説明されている --ssl-key と --ssl-cert の代替手段も含まれます。Windows で生成された localhost 証明書の EKU を確認し、サーバー認証とクライアント認証を追加することで、カスタム証明書オプションなしで HTTPS サイトが信頼されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- cli, security
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100