It does not have anything to do with the self-signedness of the server's 
certificate, as arangosh, arangoimp and arangodump work fine with 
self-signed certificates.
The reason was simply that arangorestore had not SSL support compiled in, 
so it cannot connect to an SSL endpoint at all.
The following patch fixes that:

diff --git a/arangosh/Restore/arangorestore.cpp 
b/arangosh/Restore/arangorestore.cpp
index 116fa53..eec4638 100644
--- a/arangosh/Restore/arangorestore.cpp
+++ b/arangosh/Restore/arangorestore.cpp
@@ -33,6 +33,7 @@
 #include "Random/RandomFeature.h"
 #include "Restore/RestoreFeature.h"
 #include "Shell/ClientFeature.h"
+#include "Ssl/SslFeature.h"
 
 using namespace arangodb;
 using namespace arangodb::application_features;
@@ -54,6 +55,7 @@ int main(int argc, char* argv[]) {
   server.addFeature(new RandomFeature(&server));
   server.addFeature(new RestoreFeature(&server, &ret));
   server.addFeature(new ShutdownFeature(&server, {"Restore"}));
+  server.addFeature(new SslFeature(&server));
   server.addFeature(new TempFeature(&server, "arangorestore"));
   server.addFeature(new VersionFeature(&server));
 
So it was simply an oversight, but it took me quite a while to find out. I 
have pushed the fix into the 3.0 and devel branches, and it will land in 
3.0.2.
Best regards
Jan

Am Freitag, 1. Juli 2016 09:40:54 UTC+2 schrieb Thomas Weiss:
>
> Hi again,
>
> Trying to restore a dump to a 3.0 server that has SSL enabled (I can 
> connect on the web dashboard so it's working fine).
> When using *--server.endpoint ssl://...* it reports that it can't 
> connect: ERROR Could not connect to endpoint http+ssl://
> May that be because the server's certificate is self-signed?
>
> Thanks
> Thomas
>

-- 
You received this message because you are subscribed to the Google Groups 
"ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to