Skip to content

Commit

Permalink
docs: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jan 30, 2020
1 parent c82c9dc commit db1ed1e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions script/generate-certificates-for-webooks-certificate-spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#Code to generate certificates

# To generate a self signed CA certificate for use in a server:
# root_ca.add_extension(ef.create_extension("basicConstraints","CA:TRUE",true))
# root_ca.add_extension(ef.create_extension("keyUsage","keyCertSign, cRLSign", true))
# root_ca.add_extension(ef.create_extension("subjectKeyIdentifier","hash",false))
# root_ca.add_extension(ef.create_extension("authorityKeyIdentifier","keyid:always",false))
# root_ca.add_extension(ef.create_extension("keyUsage","digitalSignature", true))

require 'openssl'

root_key = OpenSSL::PKey::RSA.new 2048 # the CA's public/private key
Expand Down

0 comments on commit db1ed1e

Please sign in to comment.