jetty-keygen problem in 3.0

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

jetty-keygen problem in 3.0

Welblaud
Hi all,

In my app, I access DB from Oxygen via secure WebDAV connection. With a trusted certificate (provided by a CA) I need to add my key chain into the Jetty’s keystore. For now, it seems the password of the keystore is apparent from $EXIST_HOME/tools/jetty/etc/jetty-ssl-context.xml. If I change it there and try to re-generate the default keystore because of the unfriendly default password, I use $EXIST_HOME/build.sh jetty-keystore. It works but logs a thing. The longer version taken from here: ./build.sh -f build/scripts/jarsigner.xml jetty-keygen fails.

The first option logs:
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar
Buildfile: /home/user/eXist-db-3.0/build/scripts/jarsigner.xml

However, keystore is properly build.

The second option fails entirely and logs:
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar
Buildfile: /home/user/eXist-db-3.0/build/scripts/jarsigner.xml

jetty-keygen:

BUILD FAILED
/home/honza/eXist-db-3.0/build/scripts/jarsigner.xml:83: Validity attribute should be a integer

I could correct the docs but I am not sure what should work and what is obsolete.

I run it on Ubuntu Server 16.04 LTS.

Honza

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: jetty-keygen problem in 3.0

Dannes Wessels-3
Hi Honza,

Do you have a JDK or a JRE installed? to build a JDK is required. Please verify by typing 'javac' ;

if there is a JDK, then strangely the openjdk is quite different to the oracle jdk ; in this case you should install the oracle equivalent [though this is not expected]

regards

Dannes


On Thu, Mar 16, 2017 at 4:37 PM, Honza Hejzl <[hidden email]> wrote:
Hi all,

In my app, I access DB from Oxygen via secure WebDAV connection. With a trusted certificate (provided by a CA) I need to add my key chain into the Jetty’s keystore. For now, it seems the password of the keystore is apparent from $EXIST_HOME/tools/jetty/etc/jetty-ssl-context.xml. If I change it there and try to re-generate the default keystore because of the unfriendly default password, I use $EXIST_HOME/build.sh jetty-keystore. It works but logs a thing. The longer version taken from here: ./build.sh -f build/scripts/jarsigner.xml jetty-keygen fails.

The first option logs:
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar
Buildfile: /home/user/eXist-db-3.0/build/scripts/jarsigner.xml

However, keystore is properly build.

The second option fails entirely and logs:
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar
Buildfile: /home/user/eXist-db-3.0/build/scripts/jarsigner.xml

jetty-keygen:

BUILD FAILED
/home/honza/eXist-db-3.0/build/scripts/jarsigner.xml:83: Validity attribute should be a integer

I could correct the docs but I am not sure what should work and what is obsolete.

I run it on Ubuntu Server 16.04 LTS.

Honza

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open




--
eXist-db Native XML Database - http://exist-db.org
Join us on linked-in: http://www.linkedin.com/groups?gid=35624

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: jetty-keygen problem in 3.0

Dannes Wessels-3
In reply to this post by Welblaud


On Thu, Mar 16, 2017 at 4:37 PM, Honza Hejzl <[hidden email]> wrote:
The longer version taken from here: ./build.sh -f build/scripts/jarsigner.xml jetty-keygen fails


out... that document is from 2008 ! it is probably outdated :-/ (classic issue with wikis)

regards

Dannes
 


--
eXist-db Native XML Database - http://exist-db.org
Join us on linked-in: http://www.linkedin.com/groups?gid=35624

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open