Created
April 11, 2018 04:03
-
-
Save irori/8b15709cf0241bd0fc1e4edf3e8d4535 to your computer and use it in GitHub Desktop.
SignedCertificateTimestampList generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# Combines SCTs into a SignedCertificateTimestampList structure. | |
# usage: sctlist.rb a.sct b.sct ... | |
buf = "" | |
ARGV.each do |f| | |
sct = File.read(f, :encoding => Encoding::ASCII_8BIT) | |
buf += [sct.bytesize].pack('n') + sct | |
end | |
print [buf.bytesize].pack('n') + buf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment