sepafm 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sepa/certificates/{danske_root_certificate.cer → danske_root_certificate.pem} +0 -0
- data/lib/sepa/certificates/nordea_root_certificate.pem +21 -0
- data/lib/sepa/certificates/{op_root_certificate.cer → op_root_certificate.pem} +0 -0
- data/lib/sepa/version.rb +1 -1
- data/lib/sepafm.rb +3 -3
- data/test/sepa/banks/nordea/nordea_application_request_test.rb +6 -10
- data/test/sepa/banks/nordea/nordea_cert_application_request_test.rb +4 -4
- data/test/sepa/sepa_test.rb +1 -1
- metadata +5 -5
- data/lib/sepa/certificates/nordea_root_certificate.cer +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4495553a8331dc839714be9d80f714bcdad98a00
|
4
|
+
data.tar.gz: 60935bd6d5859e8e812943c40c64854671b365c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8cad4589cb2968fa5ff25dbf14542584973549dd5d3836e404dea824bdfecaed3deceeaddd62d8f191734040910f6d810617d40fce84762931c7e24d73ceec7
|
7
|
+
data.tar.gz: 726a6d88274b0f076f86ba1798c46649e304f6da1f5a23f6f8669eab07c5e96fef2a52b0257b47cc3755e4bf3e1771fa929b7ec69b38548dd5aedbbc68b2a45e
|
File without changes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDhzCCAm+gAwIBAgIEAIBFFDANBgkqhkiG9w0BAQUFADBrMQswCQYDVQQGEwJT
|
3
|
+
RTEeMBwGA1UEChMVTm9yZGVhIEJhbmsgQUIgKHB1YmwpMSYwJAYDVQQDEx1Ob3Jk
|
4
|
+
ZWEgQ29ycG9yYXRlIFNlcnZlciBDQSAwMTEUMBIGA1UEBRMLNTE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wtIjVXQsz+snKbAkd2ED1eUqu7t2rmfeGF00NEwrRLsSTQY+25FlpAh1
|
20
|
+
ynd6/bllN+kwYUSWwMFpqncwEpLTp9t7ARw+TBjpNUxt0U6WnSqwOE1pMQ==
|
21
|
+
-----END CERTIFICATE-----
|
File without changes
|
data/lib/sepa/version.rb
CHANGED
data/lib/sepafm.rb
CHANGED
@@ -56,17 +56,17 @@ SOAP_TEMPLATE_PATH = "#{ROOT_PATH}/lib/sepa/xml_templates/soap"
|
|
56
56
|
# Path to where the certificates are located
|
57
57
|
CERTIFICATE_PATH = "#{ROOT_PATH}/lib/sepa/certificates/"
|
58
58
|
|
59
|
-
nordea_root_certificate_string = File.read("#{CERTIFICATE_PATH}nordea_root_certificate.
|
59
|
+
nordea_root_certificate_string = File.read("#{CERTIFICATE_PATH}nordea_root_certificate.pem")
|
60
60
|
|
61
61
|
# Nordea's root certificate as an OpenSSL::X509::Certificate
|
62
62
|
NORDEA_ROOT_CERTIFICATE = OpenSSL::X509::Certificate.new nordea_root_certificate_string
|
63
63
|
|
64
|
-
danske_root_certificate_string = File.read("#{CERTIFICATE_PATH}danske_root_certificate.
|
64
|
+
danske_root_certificate_string = File.read("#{CERTIFICATE_PATH}danske_root_certificate.pem")
|
65
65
|
|
66
66
|
# Danske Bank's root certificate as an OpenSSL::X509::Certificate
|
67
67
|
DANSKE_ROOT_CERTIFICATE = OpenSSL::X509::Certificate.new danske_root_certificate_string
|
68
68
|
|
69
|
-
op_root_certificate_string = File.read("#{CERTIFICATE_PATH}op_root_certificate.
|
69
|
+
op_root_certificate_string = File.read("#{CERTIFICATE_PATH}op_root_certificate.pem")
|
70
70
|
|
71
71
|
# OP's root certificate as an OpenSSL::X509::Certificate
|
72
72
|
OP_ROOT_CERTIFICATE = OpenSSL::X509::Certificate.new op_root_certificate_string
|
@@ -27,17 +27,13 @@ class NordeaApplicationRequestTest < ActiveSupport::TestCase
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def test_schemas_are_unmodified
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
ar_schema_digest = sha1.digest(ar_schema)
|
35
|
-
|
36
|
-
sha1.reset
|
30
|
+
ar_schema = File.read("#{SCHEMA_PATH}/application_request.xsd", mode: 'rb')
|
31
|
+
xmldsig_schema = File.read("#{SCHEMA_PATH}/xmldsig-core-schema.xsd", mode: 'rb')
|
32
|
+
ar_schema_digest = Digest::MD5.hexdigest(ar_schema)
|
33
|
+
xmldsig_schema_digest = Digest::MD5.hexdigest(xmldsig_schema)
|
37
34
|
|
38
|
-
|
39
|
-
assert_equal
|
40
|
-
assert_equal encode(xmldsig_schema_digest).strip, "bmG0+2KykgkLeWsXsl6CFbyo4Yc="
|
35
|
+
assert_equal "8ac85e57fc3af6bf44d629b9ab73c5ff", ar_schema_digest
|
36
|
+
assert_equal "541dd8dc113f715c166f6f1a5b54c2f1", xmldsig_schema_digest
|
41
37
|
end
|
42
38
|
|
43
39
|
def test_ar_should_initialize_with_proper_params
|
@@ -10,10 +10,10 @@ class NordeaCertApplicationRequestTest < ActiveSupport::TestCase
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def test_schemas_are_unmodified
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
assert_equal
|
13
|
+
cert_schema = File.read("#{SCHEMA_PATH}/cert_application_request.xsd", mode: 'rb')
|
14
|
+
cert_digest = Digest::MD5.hexdigest(cert_schema)
|
15
|
+
|
16
|
+
assert_equal "840eb9631ee4f7018f8765bf039717b6", cert_digest
|
17
17
|
end
|
18
18
|
|
19
19
|
def test_should_initialize_with_only_get_certificate_params
|
data/test/sepa/sepa_test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sepafm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joni Kanerva
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-09-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activemodel
|
@@ -160,9 +160,9 @@ files:
|
|
160
160
|
- lib/sepa/banks/nordea/soap_nordea.rb
|
161
161
|
- lib/sepa/banks/op/op_response.rb
|
162
162
|
- lib/sepa/banks/op/soap_op.rb
|
163
|
-
- lib/sepa/certificates/danske_root_certificate.
|
164
|
-
- lib/sepa/certificates/nordea_root_certificate.
|
165
|
-
- lib/sepa/certificates/op_root_certificate.
|
163
|
+
- lib/sepa/certificates/danske_root_certificate.pem
|
164
|
+
- lib/sepa/certificates/nordea_root_certificate.pem
|
165
|
+
- lib/sepa/certificates/op_root_certificate.pem
|
166
166
|
- lib/sepa/client.rb
|
167
167
|
- lib/sepa/error_messages.rb
|
168
168
|
- lib/sepa/response.rb
|
Binary file
|