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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fcf6a6e83dff71b36d8471c74c9cd1ac8d5820d1
4
- data.tar.gz: cdb5388a417cab22de0f4e4dbdfa9c4ff915da69
3
+ metadata.gz: 413e2b5105405f3401eed837bde126dca42e7322
4
+ data.tar.gz: 9adb2f6f157fcf9ba5febca5a35228332b1da187
5
5
  SHA512:
6
- metadata.gz: 5a78e51b16de669de260f18f8c61436ee6fcc1a5f7a402d69d431f0fd61887369a645f93104bb1a2ee90b9d172f56b1bac9dccd853119f7b5c054a9d8bd2178e
7
- data.tar.gz: f58e3b79734b84962a8aa36f5d01e8a3477cf60b18490507c67590136412e32e3db1e904586e073e58ab60de79db2210c20d33c50ec737c553ff0b8b1b47ccc1
6
+ metadata.gz: ec0f26df9e919828bfd6a3c57d6f101bb090a4fc0321b2c4cb12c4dce0fce353b0ebcb311dc36ba1860c45517170a58db43f4570e740529cb3b4468f76c37bb3
7
+ data.tar.gz: e1498744fb63e61e47b366896aaed9690a68c43035d38089758419c73d3637c57c0743a3f9c6d2c19c9b3ec5cc1584c3c1d5444eeabfd10e1aa436e57793d5b6
@@ -1 +1,2 @@
1
- 1~'��U���[ˏm�%s\�xJ_�$K#��^o7��KZ���LA�(����$�bn��ǂk��Vo���ss&��
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
- v�\n�¯O�S0�[]E%�%>͎��EOsV@F,�� |us�*U�=gFv��H���1���|݌���Cr�I�����ٴ�8�Ӗ��� �Tmcn�cD�P���@QŐM{/�*���2��+D��w��h��2p4ff./3�����7��<�Y��S3b<������ҿ@�T&�{!���蠕n>$!3��.aѓQ˩�v]tc�-��Ek-X[Z,��鸝qx�M�S��ߋN~X�=L���lW��zb#r4
1
+ � g �M) ���ڄp�뼯M�����edr�&��7�^ڟ�U��{n��0^�� 6���{K}��c���,H9�x��e<�V��8�����'pM��� �I˺�Ս�t���'�f،Kax��uV27�|��� ��]%fVl~�Y�����m��X�����I!�Y��
2
+ {���C[��vmO����d[�I�ܙ�[A�N*H�j����^o�c^�I��q��F�\Q���`,��cru�:j<t�h�%
@@ -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.new([["C", subject]])
46
- cert.issuer = OpenSSL::X509::Name.new([["C", issuer]])
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
-
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Socket
3
- VERSION = "0.1.10"
3
+ VERSION = "0.1.11"
4
4
  end
5
5
  end
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.10
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: 2017-12-29 00:00:00.000000000 Z
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