GithubHelp home page GithubHelp logo

Comments (2)

scottfrederick avatar scottfrederick commented on April 28, 2024

Is this on the road map already ?

This is not something that is on the roadmap as an enhancement in Spring Boot itself.

Is it feasible ? (someone will know a lot more about any issues in this space than i do)
Would the current interface support it ?
If it's not on the roadmap, is there a mechanism to get spring to load this from extenal code. Pardon my ignorance, but at first glance these bundles aren't beans, so i'm not sure what other mechanism might be available to wire them in.

The SSL bundles feature was designed with this type of extension in mind. The mechanism for loading bundles from an external source is the SslBundleRegistrar. When a bean of this type is contributed to the application context, it can create named bundles and add them to the list of bundles that are available for use by the application.

The SslPropertiesSslBundleRegistrar class is an example of this that reads the spring.ssl.bundle properties and creates bundles from the provided properties. You could use that as a model, create your own properties class, implement your own registrar that reads the properties and loads the content from the Windows store, and contribute the registrar as a bean.

All this can be done outside of Spring Boot, which gives you the ability to iterate on it separate from Boot's release cycle (and without having to build Spring Boot itself).

from spring-boot.

alister995199 avatar alister995199 commented on April 28, 2024

Hi @scottfrederick ,

Thank you for the reply and the tips ! That seems pretty manageable - I'll give it a shot - though i'm nervous about the need for elevation for private key access etc and other "gotcha's". So i'm not assuming it will be possible.

I'll raise a stack overflow related to this, to garner any input, but also to possibly self post an implementation - since it's the de rigueur place to look for code solutions. I'll link that here today - after which feel free to close this issue.

Edit: https://stackoverflow.com/questions/78111646/spring-ssl-bundle-for-certificate-material-from-windows-certificate-stores-ser

from spring-boot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.