Skip to content

Commit dca94f6

Browse files
authored
Merge pull request #327 from sarisia/self-sign-to-csr
Create self-signed certificate with CSR
2 parents 5ecc8d3 + 24d53bd commit dca94f6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

fs_overlay/opt/certs_manager/lib/open_ssl.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,11 @@ def self.self_sign(domain)
5353

5454
command = <<-EOC
5555
openssl req -x509 \
56-
-newkey rsa:#{NAConfig.key_length} \
57-
-nodes \
56+
-in #{domain.csr_path} \
57+
-key #{domain.ongoing_key_path} \
5858
-out #{domain.ongoing_cert_path} \
59-
-keyout #{domain.ongoing_key_path} \
6059
-days 90 \
6160
-batch \
62-
-subj "/CN=#{domain.name}" \
6361
-addext "extendedKeyUsage = serverAuth"
6462
EOC
6563

0 commit comments

Comments
 (0)