File tree 4 files changed +6
-16
lines changed
4 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 2
2
3
3
echo '
4
4
========================================
5
- HTTPS-PORTAL v1.2.6
5
+ HTTPS-PORTAL v1.2.7
6
6
========================================
7
7
'
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ def setup
12
12
13
13
OpenSSL . ensure_dhparam
14
14
OpenSSL . ensure_account_key
15
- download_intermediate_cert
16
15
Nginx . setup
17
16
Nginx . start
18
17
@@ -25,8 +24,6 @@ def setup
25
24
def renew
26
25
puts "Renewing ..."
27
26
with_lock do
28
- download_intermediate_cert
29
-
30
27
NAConfig . domains . each do |domain |
31
28
if OpenSSL . need_to_sign_or_renew? domain
32
29
ACME . sign ( domain )
Original file line number Diff line number Diff line change 1
1
require 'open-uri'
2
2
3
3
module Commands
4
- def download_intermediate_cert
5
- unless File . exist? intermediate_cert_path
6
- File . open ( intermediate_cert_path , 'wb' ) do |saved_file |
7
- open ( 'https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem' , 'rb' ) do |read_file |
8
- saved_file . write ( read_file . read )
9
- end
10
- end
11
- end
4
+ def chain_cert ( domain )
5
+ # Keeping this step for backward compatibility
6
+ system "ln -s #{ domain . signed_cert_path } #{ domain . chained_cert_path } "
12
7
end
13
8
14
9
def mkdir ( domain )
@@ -22,8 +17,4 @@ def add_dockerhost_to_hosts
22
17
f . puts "#{ docker_host_ip } \t dockerhost"
23
18
end
24
19
end
25
-
26
- def intermediate_cert_path
27
- '/var/lib/https-portal/intermediate.pem'
28
- end
29
20
end
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ def self.self_sign(domain)
50
50
EOC
51
51
52
52
system command
53
+
54
+ system "ln -s #{ domain . signed_cert_path } #{ domain . chained_cert_path } "
53
55
end
54
56
55
57
private
You can’t perform that action at this time.
0 commit comments