Database Connection to eXist-db using XMLRPC with SSL encryption (port 8443)
Posted: Tue Jul 10, 2012 11:12 pm
Is it possible to configure an oXygen XML Editor "Database Explorer" connection to eXist-db over XMLRPC with SSL encryption over port 8443?
Reading the wiki article[1], I expected to be able to provide Connection Details values such as:
XML DB URI: xmldb:exist://localhost:8443/exist/xmlrpc
User: admin
Password: ***
Collection: /db
But when I did, I got this error dialog in oXygen:
org.xmldb.api.base.XMLDBException: Failed to read server's response: The server localhost failed to respond (http://localhost:8443/exist/xmlrpc) Failed to read server's response: The server localhost failed to respond (http://localhost:8443/exist/xmlrpc)
This is using eXist-db 2.1-dev rev. 16449. Using this version, I have no problems using the Java Admin Client to connect to URL xmldb:exist://localhost:8443/exist/xmlrpc using port 8443 and having the "SSL: Use a secure HTTPS connection" checkbox selected. I can also make an SSL-encrypted WebDAV connection over port 8443.
So clearly port 8443 is working to provide secure XMLDB/XMLRPC/WebDAV connections. Is my problem with oXygen that I crafted the wrong URL, or is it that oXygen doesn't support SSL-encrypted connections to eXist's XMLDB/XMLRPC interface?
Let me also add that had fully completed oXygen's directions to add eXist/Jetty's self-signed certificate to my machine's keystore, as documented at:
http://www.oxygenxml.com/doc/ug-oxygen/ ... icate.html
oXygen will let me establish a secure WebDAV connection to https://localhost:8443/exist/webdav/db/. It just won't let me establish a secure XMLRPC connection to xmldb:exist://localhost:8443/exist/xmlrpc. (The error is as pasted in above.)
(Is it suspicious that the URLs listed in these error dialogs are
"http" and not "https"?)
Thanks for your guidance.
Joe
Reading the wiki article[1], I expected to be able to provide Connection Details values such as:
XML DB URI: xmldb:exist://localhost:8443/exist/xmlrpc
User: admin
Password: ***
Collection: /db
But when I did, I got this error dialog in oXygen:
org.xmldb.api.base.XMLDBException: Failed to read server's response: The server localhost failed to respond (http://localhost:8443/exist/xmlrpc) Failed to read server's response: The server localhost failed to respond (http://localhost:8443/exist/xmlrpc)
This is using eXist-db 2.1-dev rev. 16449. Using this version, I have no problems using the Java Admin Client to connect to URL xmldb:exist://localhost:8443/exist/xmlrpc using port 8443 and having the "SSL: Use a secure HTTPS connection" checkbox selected. I can also make an SSL-encrypted WebDAV connection over port 8443.
So clearly port 8443 is working to provide secure XMLDB/XMLRPC/WebDAV connections. Is my problem with oXygen that I crafted the wrong URL, or is it that oXygen doesn't support SSL-encrypted connections to eXist's XMLDB/XMLRPC interface?
Let me also add that had fully completed oXygen's directions to add eXist/Jetty's self-signed certificate to my machine's keystore, as documented at:
http://www.oxygenxml.com/doc/ug-oxygen/ ... icate.html
oXygen will let me establish a secure WebDAV connection to https://localhost:8443/exist/webdav/db/. It just won't let me establish a secure XMLRPC connection to xmldb:exist://localhost:8443/exist/xmlrpc. (The error is as pasted in above.)
(Is it suspicious that the URLs listed in these error dialogs are
"http" and not "https"?)
Thanks for your guidance.
Joe