I have a microservice with Spring Security and I have the contents of the private and public keys in application.yml (please don\'t judge me). I also have a @ConfigurationPr