alpine-linux-scripts icon indicating copy to clipboard operation
alpine-linux-scripts copied to clipboard

ca-certificate-java for Alpine linux?

Open ehudkaldor opened this issue 10 years ago • 5 comments

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.

ehudkaldor avatar Jan 06 '16 06:01 ehudkaldor

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

itoffshore avatar Jan 06 '16 21:01 itoffshore

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 [email protected] 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 .

ehudkaldor avatar Jan 08 '16 07:01 ehudkaldor

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.

itoffshore avatar Jan 09 '16 03:01 itoffshore

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

Risto-Stevcev avatar Aug 12 '16 09:08 Risto-Stevcev

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).

itoffshore avatar Aug 12 '16 17:08 itoffshore