question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add internal cacert to /etc/ssl/certs/java/cacerts

See original GitHub issue

Environment:

  • Jib version: 2.6.0
  • Build tool: Gradle 6.7.1
  • OS: MacOS

Description of the issue: I’d like a way to add my internal cacert.pem file to the /etc/ssl/certs/java/cacerts file that comes with the base image.

Expected behavior: I specify some directory containing cacert.pem files, they all get added to the existing /etc/ssl/certs/java/cacerts in the resulting image.

This is distinct from https://github.com/GoogleContainerTools/jib/issues/2240 which merely wants to be able to replace the existing cacerts file. I want to be able append to it.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gabrieljonescommented, Jan 12, 2021

For now, I think the best solution is to prepare your own cacerts

I’m happy to do this. Is there any kind of “official” list of CA certs published to maven central that I can reference in my build?

I found https://curl.haxx.se/docs/caextract.html

It would be so much nicer if it was published to maven central though. Regarding corporate nexus proxies and such.

0reactions
mpeddada1commented, Dec 2, 2021

Thank you sharing your approach! Closing this issue given the availability of alternative solutions and the SO post that @chanseokoh linked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to properly import a selfsigned certificate into Java ...
Copy the file JAVA_HOME\lib\security\cacerts to another folder. In Portecle click File > Open Keystore File; Select the cacerts file; Enter this password: ...
Read more >
How to add CA cert to Jira's trust store? - Atlassian Community
Go back to the main screen and select the Open an existing keystore from disk option, select cacerts (for example $JAVA_HOME/lib/security/ ...
Read more >
Working with Certificates and SSL (Sun Java System ...
Type yes, then press Enter. Then keytool displays something like this: Certificate was added to keystore [Saving cacerts.jks] ...
Read more >
How to add a certificate authority (CA) certificate to the ... - Plone
The 'cacerts' java keystore has a passphrase of 'changeit'. Convert. The public key certificates need to be in DER format (not PEM). Use...
Read more >
How to install an Intermediate CA cert in Apache?
Copy and paste the contents of the Intermediate CA into your CA chain file (append to chain.crt ). Restart Apache httpd: Raw. #...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found