itoffshore / alpine-linux-scripts

Alpine Linux Setup Scripts
GNU General Public License v2.0
46 stars 13 forks source link

ca-certificate-java for Alpine linux? #3

Open ehudkaldor opened 8 years ago

ehudkaldor commented 8 years ago

hi, i saw a comment you put in github, saying you will package ca-certificate-java for Alpine. is it done yet? i cannot find it in Alpine packages, and it is blocking me from running TypeSafe Activator on Alpine.

itoffshore commented 8 years ago

My edge build environment does not have an openjdk - the simplest solution is to just manually unpack the Debian package

ehudkaldor commented 8 years ago

I am not such a Linux expert, but it seems unpacking it is not enough. But the scripts in control are Debian centric, using dpkg and such. Any advice?

On Wed, Jan 6, 2016, 13:11 Stuart Cardall notifications@github.com wrote:

My edge build environment does not have an openjdk - the simplest solution is to just manually unpack the Debian package https://packages.debian.org/sid/all/ca-certificates-java/download

— Reply to this email directly or view it on GitHub https://github.com/itoffshore/alpine-linux-scripts/issues/3#issuecomment-169462301 .

itoffshore commented 8 years ago

Download the deb file & unpack it with xarchiver - then unpack data.tar.xz within the archive to give you:

/etc/ca-certificates/update.d/jks-keystore
/etc/default/cacerts
/usr/share/ca-certificates-java/ca-certificates-java.jar
/usr/share/doc/ca-certificates-java/NEWS.Debian.gz
/usr/share/doc/ca-certificates-java/README.Debian
/usr/share/doc/ca-certificates-java/changelog.gz
/usr/share/doc/ca-certificates-java/copyright

Alpine has the same /etc/ca-certificates/update.d file structure.

Let me know if it works for you.

Risto-Stevcev commented 8 years ago

Alpine 3.3.2 introduces the java-cacerts package. You might need to symlink the cacerts from ssl, so you can now just do:

$ apk add java-cacerts
$ rm /usr/lib/jvm/java-1.7-openjdk/jre/lib/security/cacerts
$ ln -s /etc/ssl/certs/java/cacerts /usr/lib/jvm/java-1.7-openjdk/jre/lib/security/cacerts

http://alpinelinux.org/posts/Alpine-3.3.2-released.html

itoffshore commented 8 years ago

Many thanks for letting me know.

java-cacerts is a dependency now of openjdk8

I just noticed elasticsearch is available too (needed for the WAF in nginx-naxsi).