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
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=\""+_util.ENCRYPTION_OFF+"\""+"in your driver configuration."));
92
+
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."));
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=\""+_util.ENCRYPTION_OFF+"\"` in the driver"+" options."));
105
+
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."));
112
106
}else{
113
107
onSuccess();
114
108
}
@@ -130,7 +124,7 @@ var TrustStrategy = {
130
124
// the raw cert cannot be accessed (or, at least I couldn't find a way to)
131
125
// therefore, we can't generate a SHA512 fingerprint, meaning we can't
132
126
// do TOFU, and the safe approach is to fail.
133
-
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:\""+_util.ENCRYPTION_OFF+"\"`."));
127
+
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`."));
onFailure((0,_error.newError)("Database encryption certificate has changed, and no longer "+"matches the certificate stored for "+serverId+" in `"+knownHostsPath+"`. As a security precaution, this driver will not automatically trust the new "+"certificate, because doing so would allow an attacker to pretend to be the Neo4j "+"instance we want to connect to. The certificate provided by the server looks like: "+serverCert+". If you trust that this certificate is valid, simply remove the line "+"starting with "+serverId+" in `"+knownHostsPath+"`, and the driver will "+"update the file with the new certificate. You can configure which file the driver "+"should use to store this information by setting `knownHosts` to another path in "+"your driver configuration - and you can disable encryption there as well using "+"`encrypted:\""+_util.ENCRYPTION_OFF+"\"`."));
142
+
onFailure((0,_error.newError)("Database encryption certificate has changed, and no longer "+"matches the certificate stored for "+serverId+" in `"+knownHostsPath+"`. As a security precaution, this driver will not automatically trust the new "+"certificate, because doing so would allow an attacker to pretend to be the Neo4j "+"instance we want to connect to. The certificate provided by the server looks like: "+serverCert+". If you trust that this certificate is valid, simply remove the line "+"starting with "+serverId+" in `"+knownHostsPath+"`, and the driver will "+"update the file with the new certificate. You can configure which file the driver "+"should use to store this information by setting `knownHosts` to another path in "+"your driver configuration - and you can disable encryption there as well using "+"`encrypted:false`."));
149
143
}
150
144
});
151
145
});
@@ -159,15 +153,14 @@ 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:\""+_util.ENCRYPTION_OFF+"\"`. 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."));
163
+
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."));
171
164
}
172
165
}
173
166
@@ -198,7 +191,6 @@ 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:\""+_util.ENCRYPTION_OFF+"\"` in the driver configuration.");
63
+
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.");
69
64
return;
70
65
}
71
66
}
@@ -111,11 +106,6 @@ var WebSocketChannel = (function () {
0 commit comments