From 767dff6c01f0c8195f4044beb3059533a814212a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Wed, 22 Nov 2023 23:03:33 +0000 Subject: [PATCH 3/8] Update certificate generation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- src/pages/login/BrowserImport.tsx | 18 +++++++++--------- src/pages/login/CertificateAdd.tsx | 4 ++-- src/pages/login/CertificateGenerate.tsx | 12 ++++++------ src/util/certificate.tsx | 4 ++-- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/pages/login/BrowserImport.tsx b/src/pages/login/BrowserImport.tsx index cc9c87a..d8ff1a4 100644 --- a/src/pages/login/BrowserImport.tsx +++ b/src/pages/login/BrowserImport.tsx @@ -25,7 +25,7 @@ const BrowserImport: FC = ({ sendPfx }) => { <>
  • This opens a certificate management dialog. Click Import... - then Next and select the lxd-ui.pfx file you + then Next and select the incus-ui.pfx file you just downloaded. Enter your password, or leave the field empty if you have not set one. Click Next.
  • @@ -34,14 +34,14 @@ const BrowserImport: FC = ({ sendPfx }) => { Next, then click Finish.
  • - Restart the browser and open LXD-UI. Select the LXD-UI certificate. + Restart the browser and open Incus-UI. Select the Incus-UI certificate.
  • ); const downloadPfx = (
  • - Download lxd-ui.pfx + Download incus-ui.pfx {sendPfx && (
    @@ -82,12 +82,12 @@ const BrowserImport: FC = ({ sendPfx }) => { Import.
  • - Select the lxd-ui.pfx file you just downloaded. + Select the incus-ui.pfx file you just downloaded. Enter your password, or leave the field empty if you have not set one.
  • - Restart the browser and open LXD-UI. Select the LXD-UI + Restart the browser and open Incus-UI. Select the Incus-UI certificate.
  • @@ -108,11 +108,11 @@ const BrowserImport: FC = ({ sendPfx }) => {
  • Click the Import button and select the{" "} - lxd-ui.pfx file you just downloaded. Enter your + incus-ui.pfx file you just downloaded. Enter your password, or leave the field empty if you have not set one.
  • - Restart the browser and open LXD-UI. Select the LXD-UI + Restart the browser and open Incus-UI. Select the Incus-UI certificate.
  • @@ -179,7 +179,7 @@ const BrowserImport: FC = ({ sendPfx }) => { keychain.
  • - Drag the lxd-ui.pfx file onto the Keychain Access + Drag the incus-ui.pfx file onto the Keychain Access app.
  • @@ -187,7 +187,7 @@ const BrowserImport: FC = ({ sendPfx }) => { and password for an administrator user on this computer.
  • - Restart the browser and open LXD-UI. Select the LXD-UI + Restart the browser and open Incus-UI. Select the Incus-UI certificate.
  • diff --git a/src/pages/login/CertificateAdd.tsx b/src/pages/login/CertificateAdd.tsx index 0e86797..9d227e5 100644 --- a/src/pages/login/CertificateAdd.tsx +++ b/src/pages/login/CertificateAdd.tsx @@ -52,7 +52,7 @@ const CertificateAdd: FC = () => {

    Generate a token on the command line

    -                        lxc config trust add --name lxd-ui
    +                        incus config trust add incus-ui
                           
    @@ -78,7 +78,7 @@ const CertificateAdd: FC = () => {
    -

    Enjoy LXD UI.

    +

    Enjoy Incus UI.

    diff --git a/src/pages/login/CertificateGenerate.tsx b/src/pages/login/CertificateGenerate.tsx index 2ea99de..39dce9f 100644 --- a/src/pages/login/CertificateGenerate.tsx +++ b/src/pages/login/CertificateGenerate.tsx @@ -82,7 +82,7 @@ const CertificateGenerate: FC = () => { mainClassName="certificate-generate" header={
    -

    Setup LXD UI

    +

    Setup Incus UI

    } > @@ -137,12 +137,12 @@ const CertificateGenerate: FC = () => {

    - Download lxd-ui.crt and add it to the LXD + Download incus-ui.crt and add it to the Incus trust store

    -                        lxc config trust add Downloads/lxd-ui.crt
    +                        incus config trust add-certificate Downloads/incus-ui.crt
                           
    @@ -152,7 +152,7 @@ const CertificateGenerate: FC = () => {