]> git.proxmox.com Git - pve-common.git/commit
cert: fix invalid CSR version
authorMira Limbeck <m.limbeck@proxmox.com>
Fri, 31 Mar 2023 16:12:24 +0000 (18:12 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 20 Apr 2023 12:31:46 +0000 (14:31 +0200)
commit8ebb0f82ac13e7332929ef0f9ef8a28b2dd9ba96
tree8bd751f3e1456c204bfda0d72386793f857bf2e1
parent4cb946a81c6b26790c8a78f8da7aa9921e8d63f9
cert: fix invalid CSR version

According to rfc2986 the only valid version is 0. No newer rfc changed
that.
See section 4.1:
https://www.rfc-editor.org/rfc/rfc2986#section-4.1

Manually verifying the CSR with openssl results in the following error:
```
$ openssl req -in bad.csr -text -noout
Certificate Request:
    Data:
        Version: Unknown (2)
```

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
src/PVE/Certificate.pm