openas2 0.1.0 → 0.2.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 +5 -5
- data/lib/openas2/remote/connection.rb +9 -2
- data/lib/openas2/version.rb +1 -1
- data/openas2.gemspec +2 -2
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: be7fa402e65d20241910ae64e228b3e7b03c2ec85279ad5bded2f93abfc17ad5
|
|
4
|
+
data.tar.gz: 27b18977ef1876e13871507e6f739dba827f3ac148da6528d5184d297b52c6f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f9027a859beec6fc3752ab6d2c8bb6b61afaf1feaf4144e45402bdc0d6ed0d9e3f54db6be6e7f430eee03019049eb55121f844b0fd9a0a4865b35339603758a
|
|
7
|
+
data.tar.gz: e3a265d5d9ae1a164576a6cebb12c8b5ae629f3011a7dfef4bbff3e54bc9c5631a63328f98f4ee7e0c9247a7f709efc7ee7a1cadef2236b65639b78463b611d4
|
|
@@ -8,10 +8,17 @@ module Openas2
|
|
|
8
8
|
attr_accessor :socket, :ssl_context, :ssl_socket
|
|
9
9
|
|
|
10
10
|
def initialize(host='localhost', port=4321, ciphers=[])
|
|
11
|
-
ciphers << ["ADH-AES256-SHA", "TLSv1/SSLv3", 256, 256]
|
|
12
11
|
@socket = TCPSocket.new(host, port)
|
|
13
12
|
@ssl_context = OpenSSL::SSL::SSLContext.new
|
|
13
|
+
|
|
14
|
+
if OpenSSL::OPENSSL_VERSION.match('1.1')
|
|
15
|
+
ciphers << ["ADH-AES256-SHA@SECLEVEL=0", "TLSv1/SSLv3", 256, 256]
|
|
16
|
+
else
|
|
17
|
+
ciphers << ["ADH-AES256-SHA", "TLSv1/SSLv3", 256, 256]
|
|
18
|
+
end
|
|
19
|
+
|
|
14
20
|
@ssl_context.ciphers = ciphers
|
|
21
|
+
@ssl_context.max_version = OpenSSL::SSL::TLS1_2_VERSION
|
|
15
22
|
end
|
|
16
23
|
|
|
17
24
|
def connect
|
|
@@ -38,4 +45,4 @@ module Openas2
|
|
|
38
45
|
|
|
39
46
|
end
|
|
40
47
|
end
|
|
41
|
-
end
|
|
48
|
+
end
|
data/lib/openas2/version.rb
CHANGED
data/openas2.gemspec
CHANGED
|
@@ -6,8 +6,8 @@ require 'openas2/version'
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "openas2"
|
|
8
8
|
spec.version = Openas2::VERSION
|
|
9
|
-
spec.authors = ["Scott Tesoriere"]
|
|
10
|
-
spec.email = ["scott@tesoriere.com"]
|
|
9
|
+
spec.authors = ["Scott Tesoriere", "Arpit Jain"]
|
|
10
|
+
spec.email = ["scott@tesoriere.com", "arpitjain1094@gmail.com", "arpit.jain@e2open.com"]
|
|
11
11
|
spec.summary = %q{Modify openas2 configuration}
|
|
12
12
|
spec.description = %q{OpenAS2 provides a SSL module to remotely manage it}
|
|
13
13
|
spec.homepage = ""
|
metadata
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openas2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scott Tesoriere
|
|
8
|
+
- Arpit Jain
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date:
|
|
12
|
+
date: 2022-01-27 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: bundler
|
|
@@ -41,6 +42,8 @@ dependencies:
|
|
|
41
42
|
description: OpenAS2 provides a SSL module to remotely manage it
|
|
42
43
|
email:
|
|
43
44
|
- scott@tesoriere.com
|
|
45
|
+
- arpitjain1094@gmail.com
|
|
46
|
+
- arpit.jain@e2open.com
|
|
44
47
|
executables: []
|
|
45
48
|
extensions: []
|
|
46
49
|
extra_rdoc_files: []
|
|
@@ -76,8 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
76
79
|
- !ruby/object:Gem::Version
|
|
77
80
|
version: '0'
|
|
78
81
|
requirements: []
|
|
79
|
-
|
|
80
|
-
rubygems_version: 2.2.2
|
|
82
|
+
rubygems_version: 3.0.6
|
|
81
83
|
signing_key:
|
|
82
84
|
specification_version: 4
|
|
83
85
|
summary: Modify openas2 configuration
|