rex-socket 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +2 -1
- data.tar.gz.sig +2 -1
- data/lib/rex/socket/ssl.rb +4 -5
- data/lib/rex/socket/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 413e2b5105405f3401eed837bde126dca42e7322
|
4
|
+
data.tar.gz: 9adb2f6f157fcf9ba5febca5a35228332b1da187
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec0f26df9e919828bfd6a3c57d6f101bb090a4fc0321b2c4cb12c4dce0fce353b0ebcb311dc36ba1860c45517170a58db43f4570e740529cb3b4468f76c37bb3
|
7
|
+
data.tar.gz: e1498744fb63e61e47b366896aaed9690a68c43035d38089758419c73d3637c57c0743a3f9c6d2c19c9b3ec5cc1584c3c1d5444eeabfd10e1aa436e57793d5b6
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
�=?�,��x/s����>�z��A�ַo�>��
|
2
|
+
�/����p���]�eweA��F�ғe˳8�+8@P`�r�Mv��4!�'�6[ �f���
|
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
� g �M)���ڄp�뼯M�����edr�&��7�^ڟ�U��{n��0^��6���{K}��c���,H9�x��e<�V��8�����'pM����I˺�Ս�t���'�f،Kax��uV2�7�|��� ��]%f�V�l~�Y�����m��X�����I!�Y��
|
2
|
+
{���C[��vmO����d[�I�ܙ�[A�N*H�j����^o�c^�I��q��F�\Q���`,��cru�:j<t�h�%
|
data/lib/rex/socket/ssl.rb
CHANGED
@@ -18,13 +18,13 @@ module Rex::Socket::Ssl
|
|
18
18
|
loc = Rex::Text.rand_name.capitalize
|
19
19
|
org = Rex::Text.rand_name.capitalize
|
20
20
|
cn = Rex::Text.rand_hostname
|
21
|
-
"US/ST=#{st}/L=#{loc}/O=#{org}/CN=#{cn}"
|
21
|
+
"/C=US/ST=#{st}/L=#{loc}/O=#{org}/CN=#{cn}"
|
22
22
|
end
|
23
23
|
|
24
24
|
def self.ssl_generate_issuer
|
25
25
|
org = Rex::Text.rand_name.capitalize
|
26
26
|
cn = Rex::Text.rand_name.capitalize + " " + Rex::Text.rand_name.capitalize
|
27
|
-
"US/O=#{org}/CN=#{cn}"
|
27
|
+
"/C=US/O=#{org}/CN=#{cn}"
|
28
28
|
end
|
29
29
|
|
30
30
|
#
|
@@ -42,8 +42,8 @@ module Rex::Socket::Ssl
|
|
42
42
|
cert = OpenSSL::X509::Certificate.new
|
43
43
|
cert.version = 2
|
44
44
|
cert.serial = (rand(0xFFFFFFFF) << 32) + rand(0xFFFFFFFF)
|
45
|
-
cert.subject = OpenSSL::X509::Name.
|
46
|
-
cert.issuer = OpenSSL::X509::Name.
|
45
|
+
cert.subject = OpenSSL::X509::Name.parse(subject)
|
46
|
+
cert.issuer = OpenSSL::X509::Name.parse(issuer)
|
47
47
|
cert.not_before = vf
|
48
48
|
cert.not_after = vt
|
49
49
|
cert.public_key = key.public_key
|
@@ -162,4 +162,3 @@ module Rex::Socket::Ssl
|
|
162
162
|
|
163
163
|
attr_accessor :sslctx
|
164
164
|
end
|
165
|
-
|
data/lib/rex/socket/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rex-socket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Maloney
|
@@ -88,7 +88,7 @@ cert_chain:
|
|
88
88
|
G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
|
89
89
|
8mVuTXnyJOKRJA==
|
90
90
|
-----END CERTIFICATE-----
|
91
|
-
date:
|
91
|
+
date: 2018-03-21 00:00:00.000000000 Z
|
92
92
|
dependencies:
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|