File tree Expand file tree Collapse file tree 3 files changed +26
-5
lines changed Expand file tree Collapse file tree 3 files changed +26
-5
lines changed Original file line number Diff line number Diff line change 67
67
end
68
68
end
69
69
70
+ context 'when a CA certificate is not provided' , if : running_ssl? && testing_locally? do
71
+
72
+ let ( :options ) do
73
+ {
74
+ :ssl => true ,
75
+ :ssl_cert => CLIENT_PEM ,
76
+ :ssl_key => CLIENT_PEM ,
77
+ :ssl_verify => true
78
+ }
79
+ end
80
+
81
+ before do
82
+ ENV [ 'SSL_CERT_FILE' ] = CA_PEM
83
+ socket . connect!
84
+ end
85
+
86
+ it 'uses the default cert store' do
87
+ expect ( socket ) . to be_alive
88
+ end
89
+ end
90
+
70
91
context 'when ssl_verify is not specified' do
71
92
72
93
let ( :options ) do
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ def list_command_enabled?
149
149
$list_command_enabled ||= $mongo_client. cluster . servers . first . features . list_indexes_enabled?
150
150
end
151
151
152
- # Is the test suite running locallly (not on Travis or Jenkins).
152
+ # Is the test suite running locally (not on Travis or Jenkins).
153
153
#
154
154
# @since 2.1.0
155
155
def testing_locally?
Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ Certificate:
32
32
6e:a7
33
33
Exponent: 65537 (0x10001)
34
34
X509v3 extensions:
35
- X509v3 Basic Constraints:
35
+ X509v3 Basic Constraints:
36
36
CA:FALSE
37
- Netscape Comment:
37
+ Netscape Comment:
38
38
OpenSSL Generated Certificate
39
- X509v3 Subject Key Identifier:
39
+ X509v3 Subject Key Identifier:
40
40
4A:8B:EE:22:42:E6:F8:62:4C:86:38:8D:C5:78:95:98:C1:10:05:7C
41
- X509v3 Authority Key Identifier:
41
+ X509v3 Authority Key Identifier:
42
42
keyid:07:41:19:3A:9F:7E:C5:B7:22:4E:B7:BC:D5:DF:E4:FC:09:B8:64:16
43
43
44
44
Signature Algorithm: sha1WithRSAEncryption
You can’t perform that action at this time.
0 commit comments