Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Custom cacert/trust store supported? #689

Closed
DRoppelt opened this issue Mar 31, 2021 · 4 comments
Closed

Custom cacert/trust store supported? #689

DRoppelt opened this issue Mar 31, 2021 · 4 comments
Assignees
Labels
type: question A question
Milestone

Comments

@DRoppelt
Copy link

Hi,

given I develop applications for internal tooling, I have to deal with certificates signed by a private CA. i.e. for *.net adresses.

For "regular" images, I would add those CAs via RUN keytool -importcert -file ...

How would I do this for native images? Is this currently supported?

I found following so far:

Am I approaching this wrong or is that something currently not covered by any of those native-image approaches?

@sdeleuze sdeleuze added the status: waiting-for-triage An issue we've not yet triaged or decided on label Mar 31, 2021
@scottfrederick
Copy link

There are a few issues blocking the ability to use the Paketo CA Certificates mechanism with Spring Native images.

The CA Certificates buildpack is indeed missing from the Paketo Java Native Image buildpack. It was removed in an earlier version for compatibility reasons. I've created an issue to see if it can be restored now.

If the CA Certificates buildpack is available, it does not appear that the Paketo GraalVM buildpack will do what is necessary to provide the certificates to GraalVM at native build time. I've create an issue to explore this in the GraalVM buildpack.

Finally, the CA Certificates buildpack relies on CNB Bindings to provide the location of certificates to the buildpack. Spring Boot 2.4, which is the latest version currently supported by Spring Native, does not have a way to configure bindings in the Maven plugin spring-boot:build-image goal or the Gradle plugin bootBuildImage task. This ability will be available in Spring Boot 2.5.

@sdeleuze
Copy link
Contributor

sdeleuze commented Apr 2, 2021

Thanks a lot @scottfrederick, let's turn this issue to a 0.10 documentation one.

@sdeleuze sdeleuze added type: documentation A documentation task and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Apr 2, 2021
@sdeleuze sdeleuze self-assigned this Apr 2, 2021
@sdeleuze sdeleuze added this to the 0.10.0 milestone Apr 2, 2021
@sdeleuze
Copy link
Contributor

See also #748 (comment)

@sdeleuze
Copy link
Contributor

This will be supported when 0.10.0 will be released via related buildpack update, see this comment for an example.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: question A question
Development

No branches or pull requests

3 participants