TWSD-1143 On AVX we need option to import WEBUI PEM certificate with Password
Review Request #1231 — Created Dec. 15, 2025 and submitted
| Information | |
|---|---|
| austin | |
| AVX2 | |
| rel_avx_2_7_5 | |
| TWSD-1143 | |
| Reviewers | |
| kevin.poh, lucille, shuinvy, stevenku, weikai | |
Add pem, pfx certificate with password on avx
Jira(test case):
https://arraynetworks.atlassian.net/jira/software/projects/TWSD/boards/62?jql=assignee%20%3D%20712020%3A64a4a8f2-81d8-4b7a-9664-f9019a720f96&selectedIssue=TWSD-1143Add password support for WebUI SSL certificate import (PEM/PFX)
Backend (webui.c):
- Fix off-by-one error: url+6 → url+7 for "file://" protocol parsing
- Add PFX password support for PKCS12 file decryption
- Add private key passphrase support for encrypted PEM files
- Convert encrypted private keys to unencrypted format after import
(ensures WebUI can auto-start without password prompt)Python (init.py):
- Fix CLI command format: add empty line for pfx_pass parameter
to match C code stdin expectations (was causing 60s timeout)
- Pass pfx_pass and passphrase parameters to CLI for all import methods
(local file, URL, manual input)Frontend:
- Add "PFX Password" input field for .pfx/.p12 files
- Add "Key Passphrase" input field for encrypted private keys
- Add placeholder hint for file upload field
- Add i18n
