localhost 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/localhost/authority.rb +2 -2
- data/lib/localhost/system/linux.rb +9 -2
- data/lib/localhost/version.rb +1 -1
- data/license.md +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 03be6efdb28ecebf6663f77b0e8b0c6267976a3c10aa8a6d630890656da9f449
|
|
4
|
+
data.tar.gz: 2da6f5035d4e553058fb34393c36e067cd20e23bb0e22c343611a9573862fe1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b6b90d3fdb12a662104aaeb27da9e1ab9403c705f9ee90b87ccb8c0c5ebaa13c95b26be111812a44b6d74585f9fc7d5c8cd54951862053b66ccb3c5ebebfa41
|
|
7
|
+
data.tar.gz: bc8995c9f8e2e44619faee824dc97dc5bd8c593b1471b122958a0a719faf25d8c184a9b8a193f4af2e0013b941bba5d641191b9d4407497c3af8d598e7b033f6
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/localhost/authority.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
# Released under the MIT License.
|
|
4
|
-
# Copyright, 2018-
|
|
4
|
+
# Copyright, 2018-2026, by Samuel Williams.
|
|
5
5
|
# Copyright, 2019, by Richard S. Leung.
|
|
6
6
|
# Copyright, 2021, by Akshay Birajdar.
|
|
7
7
|
# Copyright, 2021, by Ye Lin Aung.
|
|
@@ -173,7 +173,7 @@ module Localhost
|
|
|
173
173
|
context.session_id_context = "localhost"
|
|
174
174
|
|
|
175
175
|
if context.respond_to? :tmp_dh_callback=
|
|
176
|
-
context.tmp_dh_callback = proc
|
|
176
|
+
context.tmp_dh_callback = proc{self.dh_key}
|
|
177
177
|
end
|
|
178
178
|
|
|
179
179
|
if context.respond_to? :ecdh_curves=
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
# Released under the MIT License.
|
|
4
|
-
# Copyright, 2025, by Samuel Williams.
|
|
4
|
+
# Copyright, 2025-2026, by Samuel Williams.
|
|
5
5
|
|
|
6
6
|
module Localhost
|
|
7
7
|
module System
|
|
@@ -11,6 +11,9 @@ module Localhost
|
|
|
11
11
|
ANCHORS_PATH = "/etc/ca-certificates/trust-source/anchors/"
|
|
12
12
|
UPDATE_CA_TRUST = "update-ca-trust"
|
|
13
13
|
|
|
14
|
+
# OpenSUSE/SLES use this path for certificate anchors.
|
|
15
|
+
OPENSUSE_ANCHORS_PATH = "/etc/pki/trust/anchors/"
|
|
16
|
+
|
|
14
17
|
# This is an older method for systems that do not use `update-ca-trust`.
|
|
15
18
|
LOCAL_CERTIFICATES_PATH = "/usr/local/share/ca-certificates/"
|
|
16
19
|
UPDATE_CA_CERTIFICATES = "update-ca-certificates"
|
|
@@ -23,9 +26,13 @@ module Localhost
|
|
|
23
26
|
command = nil
|
|
24
27
|
|
|
25
28
|
if File.exist?(ANCHORS_PATH)
|
|
26
|
-
# For systems using `update-ca-trust
|
|
29
|
+
# For systems using `update-ca-trust` (most Linux distributions).
|
|
27
30
|
destination = File.join(ANCHORS_PATH, filename)
|
|
28
31
|
command = UPDATE_CA_TRUST
|
|
32
|
+
elsif File.exist?(OPENSUSE_ANCHORS_PATH)
|
|
33
|
+
# For systems using `update-ca-certificates` (OpenSUSE/SLES).
|
|
34
|
+
destination = File.join(OPENSUSE_ANCHORS_PATH, filename)
|
|
35
|
+
command = UPDATE_CA_CERTIFICATES
|
|
29
36
|
elsif File.exist?(LOCAL_CERTIFICATES_PATH)
|
|
30
37
|
# For systems using `update-ca-certificates`.
|
|
31
38
|
destination = File.join(LOCAL_CERTIFICATES_PATH, filename)
|
data/lib/localhost/version.rb
CHANGED
data/license.md
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: localhost
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
84
84
|
- !ruby/object:Gem::Version
|
|
85
85
|
version: '0'
|
|
86
86
|
requirements: []
|
|
87
|
-
rubygems_version:
|
|
87
|
+
rubygems_version: 4.0.3
|
|
88
88
|
specification_version: 4
|
|
89
89
|
summary: Manage a local certificate authority for self-signed localhost development
|
|
90
90
|
servers.
|
metadata.gz.sig
CHANGED
|
Binary file
|