Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certs generated by LXD-UI are not following best practices #14891

Closed
simondeziel opened this issue Jan 30, 2025 · 1 comment
Closed

Certs generated by LXD-UI are not following best practices #14891

simondeziel opened this issue Jan 30, 2025 · 1 comment

Comments

@simondeziel
Copy link
Member

simondeziel commented Jan 30, 2025

I asked the LXD-UI (from LXD latest/edge) to generate a certificate and got one using RSA-2048 with SHA1 signature. Both are sub-optimal in terms of security. ECDSA P-384 with SHA384 would be in line with what the CLI client generates. Also, the C and ST fields in the Issuer and Subject fields should probably be dropped instead of getting invalid values.

$ openssl x509 -text -noout -in ~/Downloads/lxd-ui-v1.lxd.crt
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            01:76:00:09:17:06:88:00:09:21:09:13:04:24:00:22
        Signature Algorithm: sha1WithRSAEncryption
        Issuer: C = AU, ST = Some-State, O = LXD UI v1.lxd (Browser Generated)
        Validity
            Not Before: Jan 30 18:27:56 2025 GMT
            Not After : Oct 27 18:27:56 2027 GMT
        Subject: C = AU, ST = Some-State, O = LXD UI v1.lxd (Browser Generated)
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (2048 bit)
                Modulus:
...
                Exponent: 65537 (0x10001)
    Signature Algorithm: sha1WithRSAEncryption
    Signature Value:
...

I get a similarly looking certificate with Firefox 134.0.2 and Chromium 132.0.6834.83.

@simondeziel
Copy link
Member Author

Reported to LXD-UI: canonical/lxd-ui#1084

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

No branches or pull requests

1 participant