Skip to content

Commit

Permalink
Work around odd openssl bug where version was being upgraded to 2.
Browse files Browse the repository at this point in the history
* If we specify extensions, then it appears that the `version` gets
  changed to 2.
  • Loading branch information
postmodern committed Jul 21, 2024
1 parent 7b66c5c commit 3b3aad4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/crypto/cert_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,10 @@
locality: locality,
state: state,
country: country
},
extensions: extensions
}
# BUG: specifying extensions causes cert.version to be upgraded to 2
# on ruby >= 3.2 and openssl 3.2.1.
# extensions: extensions
)
end

Expand Down

0 comments on commit 3b3aad4

Please sign in to comment.