Skip to content

Commit

Permalink
Merge pull request #155 from redBorder/development
Browse files Browse the repository at this point in the history
Release 2.3.1
  • Loading branch information
manegron authored Jul 25, 2024
2 parents aa7125a + 97b801b commit 5f96ff2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.0
2.3.1
3 changes: 2 additions & 1 deletion resources/scripts/rb_create_nginx_certs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
require 'json'
require 'openssl'
require 'base64'
require 'securerandom'

def create_cert(cn)
key = OpenSSL::PKey::RSA.new 4096
name = OpenSSL::X509::Name.parse "CN=#{cn}/DC=redborder"
cert = OpenSSL::X509::Certificate.new
cert.version = 2
cert.serial = 0
cert.serial = SecureRandom.random_number(2**128)
cert.not_before = Time.now
cert.not_after = Time.now + (3600 *24 *365 *10)
cert.public_key = key.public_key
Expand Down

0 comments on commit 5f96ff2

Please sign in to comment.