Skip to content

Add a TLS signing certificate setting - #287

Open
igolaizola wants to merge 1 commit into
httptoolkit:mainfrom
igolaizola:emudhra-certificates
Open

igolaizola wants to merge 1 commit into
httptoolkit:mainfrom
igolaizola:emudhra-certificates

Conversation

@igolaizola

Copy link
Copy Markdown

Offer local, modern eMudhra and legacy eMudhra CAs in Pro proxy settings. Save the choice through the server API and use the existing restart button.

Tests: six component tests and source type checking pass.

Copilot AI balanced review requested due to automatic review settings October 22, 2026 19:11
@CLAassistant

CLAassistant commented Oct 22, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The server-side certificate-switching contract and successful save/restart path still need human validation.

1 open issue
What changed in this PR

Adds a TLS signing certificate selector to Pro proxy settings, connecting the choice to the server API and the existing restart flow.

Changes:

  • Offers local, modern eMudhra, and legacy eMudhra certificate options based on server capabilities.
  • Saves certificate changes before restarting and displays save failures without reloading.
  • Adds six component tests covering selection, availability, restart visibility, and error handling.
File Description
test/​unit/​components/​settings/​proxy-settings-card.spec.tsx Tests certificate selection and save-error behavior.
src/​services/​server-rest-api.ts Adds the certificate configuration POST request.
src/​services/​server-api.ts Exposes certificate updates through the REST client.
src/​services/​server-api-types.ts Defines certificate modes and optional configuration fields.
src/​model/​proxy-store.ts Tracks available, selected, and active certificate modes.
src/​components/​settings/​proxy-settings-card.tsx Adds the selector and save-before-restart handling.

Review effort: Balanced

yield this.props.proxyStore!.applyCertificateMode();
window.location.reload();
} catch (error) {
this.restartError = asError(error).message;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. The handler now uses ApiError.apiError.message when available, with the existing error message as a fallback.

Offer local, modern eMudhra and legacy eMudhra CAs in Pro proxy settings. Save the choice through the server API and use the existing restart button.

Tests: six component tests and source type checking pass.
@igolaizola
igolaizola force-pushed the emudhra-certificates branch from 67c9925 to 01780aa Compare October 22, 2026 19:19

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

3 participants