You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log("`TRUST_SIGNED_CERTIFICATES` has been deprecated as option and will be removed in a future version of "+"the driver. Please use `TRUST_CUSTOM_CA_SIGNED_CERTIFICATES` instead.");
onFailure((0,_error.newError)("You are using TRUST_SIGNED_CERTIFICATES as the method "+"to verify trust for encrypted connections, but have not configured any "+"trustedCertificates. You must specify the path to at least one trusted "+"X.509 certificate for this to work. Two other alternatives is to use "+"TRUST_ON_FIRST_USE or to disable encryption by setting encrypted=false "+"in your driver configuration."));
142
+
onFailure((0,_error.newError)("You are using TRUST_CUSTOM_CA_SIGNED_CERTIFICATES as the method "+"to verify trust for encrypted connections, but have not configured any "+"trustedCertificates. You must specify the path to at least one trusted "+"X.509 certificate for this to work. Two other alternatives is to use "+"TRUST_ON_FIRST_USE or to disable encryption by setting encrypted=false "+"in your driver configuration."));
onFailure((0,_error.newError)("Server certificate is not trusted. If you trust the database you are connecting to, add"+" the signing certificate, or the server certificate, to the list of certificates trusted by this driver"+" using `neo4j.v1.driver(.., { trustedCertificates:['path/to/certificate.crt']}). This "+" is a security measure to protect against man-in-the-middle attacks. If you are just trying "+" Neo4j out and are not concerned about encryption, simply disable it using `encrypted=false` in the driver"+" options."));
157
+
onFailure((0,_error.newError)("Server certificate is not trusted. If you trust the database you are connecting to, add"+" the signing certificate, or the server certificate, to the list of certificates trusted by this driver"+" using `neo4j.v1.driver(.., { trustedCertificates:['path/to/certificate.crt']}). This "+" is a security measure to protect against man-in-the-middle attacks. If you are just trying "+" Neo4j out and are not concerned about encryption, simply disable it using `encrypted=false` in the driver"+" options. Socket responded with: "+socket.authorizationError));
onFailure((0,_error.newError)("Server certificate is not trusted. If you trust the database you are connecting to, use "+"TRUST_CUSTOM_CA_SIGNED_CERTIFICATES and add"+" the signing certificate, or the server certificate, to the list of certificates trusted by this driver"+" using `neo4j.v1.driver(.., { trustedCertificates:['path/to/certificate.crt']}). This "+" is a security measure to protect against man-in-the-middle attacks. If you are just trying "+" Neo4j out and are not concerned about encryption, simply disable it using `encrypted=false` in the driver"+" options."));
149
175
}else{
150
176
onSuccess();
151
177
}
@@ -167,7 +193,7 @@ var TrustStrategy = {
167
193
// the raw cert cannot be accessed (or, at least I couldn't find a way to)
168
194
// therefore, we can't generate a SHA512 fingerprint, meaning we can't
169
195
// do TOFU, and the safe approach is to fail.
170
-
onFailure((0,_error.newError)("You are using a version of NodeJS that does not "+"support trust-on-first use encryption. You can either upgrade NodeJS to "+"a newer version, use `trust:TRUST_SIGNED_CERTIFICATES` in your driver "+"config instead, or disable encryption using `encrypted:false`."));
196
+
onFailure((0,_error.newError)("You are using a version of NodeJS that does not "+"support trust-on-first use encryption. You can either upgrade NodeJS to "+"a newer version, use `trust:TRUST_CUSTOM_CA_SIGNED_CERTIFICATES` in your driver "+"config instead, or disable encryption using `encrypted:false`."));
171
197
return;
172
198
}
173
199
@@ -207,7 +233,7 @@ function connect(opts, onSuccess) {
onFailure((0,_error.newError)("Unknown trust strategy: "+opts.trust+". Please use either "+"trust:'TRUST_SIGNED_CERTIFICATES' or trust:'TRUST_ON_FIRST_USE' in your driver "+"configuration. Alternatively, you can disable encryption by setting "+"`encrypted:false`. There is no mechanism to use encryption without trust verification, "+"because this incurs the overhead of encryption without improving security. If "+"the driver does not verify that the peer it is connected to is really Neo4j, it "+"is very easy for an attacker to bypass the encryption by pretending to be Neo4j."));
236
+
onFailure((0,_error.newError)("Unknown trust strategy: "+opts.trust+". Please use either "+"trust:'TRUST_CUSTOM_CA_SIGNED_CERTIFICATES' or trust:'TRUST_ON_FIRST_USE' in your driver "+"configuration. Alternatively, you can disable encryption by setting "+"`encrypted:false`. There is no mechanism to use encryption without trust verification, "+"because this incurs the overhead of encryption without improving security. If "+"the driver does not verify that the peer it is connected to is really Neo4j, it "+"is very easy for an attacker to bypass the encryption by pretending to be Neo4j."));
211
237
}
212
238
}
213
239
@@ -250,6 +276,7 @@ var NodeChannel = (function () {
this._error=(0,_error.newError)("The browser version of this driver only supports one trust "+"strategy, 'TRUST_SIGNED_CERTIFICATES'. "+opts.trust+" is not supported. Please "+"either use TRUST_SIGNED_CERTIFICATES or disable encryption by setting "+"`encrypted:false` in the driver configuration.");
63
+
this._error=(0,_error.newError)("The browser version of this driver only supports one trust "+"strategy, 'TRUST_CUSTOM_CA_SIGNED_CERTIFICATES'. "+opts.trust+" is not supported. Please "+"either use TRUST_CUSTOM_CA_SIGNED_CERTIFICATES or disable encryption by setting "+"`encrypted:false` in the driver configuration.");
0 commit comments