Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/mini_ca/certificate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ def initialize(
@counter = 0

x509.version = 0x2
x509.serial = serial || 0
# https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.2
# must be unique positive integer
x509.serial = serial || OpenSSL::BN.rand(128, 0)

x509.public_key = public_key

Expand Down
2 changes: 1 addition & 1 deletion lib/mini_ca/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module MiniCa
VERSION = '1.2.1'.freeze
VERSION = '1.2.2'.freeze
end
Loading