Skip to content

Commit

Permalink
this should actually be 0, not 3.
Browse files Browse the repository at this point in the history
according to the rfc the only version is 1, which is encoded as a 0.
  • Loading branch information
jorisvink committed Nov 27, 2024
1 parent 4bd456a commit 5df4d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keymgr_openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ keymgr_acme_csr(const struct kore_keyreq *req, struct key *key)
if ((csr = X509_REQ_new()) == NULL)
fatalx("X509_REQ_new: %s", ssl_errno_s);

if (!X509_REQ_set_version(csr, 3))
if (!X509_REQ_set_version(csr, 0))
fatalx("X509_REQ_set_version(): %s", ssl_errno_s);

if (!X509_REQ_set_pubkey(csr, key->pkey))
Expand Down

0 comments on commit 5df4d07

Please sign in to comment.