proxyman-windows-linux icon indicating copy to clipboard operation
proxyman-windows-linux copied to clipboard

Manual Install the Certificate

Open NghiaTranUIT opened this issue 2 years ago • 3 comments

Description

It's not reliable to automatically install the certificate on Windows, we should provide

Acceptance Criteria - UI

Screenshot 2023-01-17 at 08 36 29

  • Don't use the BlueprintJS UI component anymore. Use a clean design from TailwindCSS UI (https://tailwindui.com/components). Ping @NghiaTranUIT for credentials.
  • (1): Add Manual Tab
  • (2): Add Proxyman Certificate to the system.
  • (3): Not implemented
  • (4): Install button
  • (5): Add Proxyman Certificate to Trusted Root Certificate Authorities
  • (6): Please follow 2 steps to Install and Trust Proxyman Certificate in your devices:
  • (7): Don't use the image:

Add new UI:

  • Similar this layout:

Screenshot 2023-01-17 at 08 47 02

  • (1): Use this image: Screenshot 2023-01-17 at 08 44 36
  • (2): Click on the "Install Certificate" button
  • (3): Use this image: Screenshot 2023-01-17 at 08 35 10
  • (4): Select "Current User" -> Select "Place certificate in the following store" -> Click on "Browse..." button -> Select "Trusted Root Certification Authorities" -> OK -> Next -> Finish

Note:

  • I will provide a different screenshot later. Please use it temporarily.

Acceptance Criteria - Code

  • Find a solution to install the certificate by GUI (By showing the Certificate in Windows)
  • Do not use BlueprintJS anymore, we deprecate it. Use clean buttons/UI from Tailwind UI. No need to customize. Just use the clean button, UI.
  • Find a solution to check whether or not the certificate is installed in the Certificate Manager.
  • Observe the Windows Active event (Click on the windows) -> Check whether or not the certificate is added to the Certificate Manager. See the macOS for example: If you delete the certificate in the keychain -> Back to the app -> It will check and show the Warning if needed.
  • Update the Install button state properly.

NghiaTranUIT avatar Jan 17 '23 01:01 NghiaTranUIT

How to detect whether or not a certificate is installed in the Keychain (macOS), Store CA (Windows) or not?

  • https://www.npmjs.com/package/system-ca

NghiaTranUIT avatar Jan 18 '23 01:01 NghiaTranUIT

New requirement

  • Get current OS:
  1. Windows: "Windows Setup Guide", has two tabs (Auto & Manual)
  2. Linux: "Linux Setup Guide". Only Auto Tab. Hide the Manual

1

  • Add the "Show Me" button at the end of each step 2.1 and 2.2 (See the screenshot)=> Click will show a new Popover -> With a bigger Screenshot (80% width and height of the entire screen) -> I can click to the gray background to dismiss the Screenshot view -> Make sure It doesn't the "Windows Setup Guide" doesn't dismiss.
  • In the Manual Tab, I can also click on the Image -> Same action as "Show me" button
  • Add Section: Certificate Status with a new button "Verify" (Use this text instead of from the screenshot) -> Read the next section for the logic.

Certificate Status

  1. Create a new class CertificateVerification

  2. When the "Verify" button is clicked -> Show the loader (similar to the loader in the Activate License Key)

  3. Use new certutil.exe solution to check

  4. If error-> Show the label Screenshot 2023-10-11 at 10 00 57

  5. If it successes -> Show this label: CleanShot 2023-10-11 at 10 00 16@2x

NghiaTranUIT avatar Oct 11 '23 03:10 NghiaTranUIT

Update v2

  • Use new 3 images:
  • Step 2.3 should be in the new line. Step 2.1 and Step 2.2 in the same line (as current UI)
  • Make the Window Setup Guide (Manual Tab) bigger a little bit by adding 100px to the height. Make sure we can see all 3 steps in the same windows. Don't Scroll.

Step 2.1

  • Replace with this image: 1

Step 2.2:

  • Use new text:
Select "Local Machine" checkbox and click the Next button
  • Replace this image: 2

Step 2.3:

  • Use new text
Follow the instructions and make sure to select "Trusted Root Certification"
  • Highlight Trusted Root Certification with red color
  • Use new image

3

NghiaTranUIT avatar Oct 19 '23 03:10 NghiaTranUIT