-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to pass password of encrypted private key when enabling grpc.ssl #903
Comments
you can always set the values of |
Hi @graemerocher , Also is it possible to pass .jks or .p12 files instead of PEM? |
no you will have to implement this decryption logic. There is an extension mechanism called https://docs.micronaut.io/4.0.x/api/io/micronaut/context/env/PropertyExpressionResolver.html where you could implement your own expression resolver. This mechanism is extensible and allows things like |
Thanks for the update @graemerocher . And is there a way to pass .jks or .p12 instead of PEM files? |
not to my knowledge |
Hi @graemerocher , can you point me to the documentation where we can understand how to programmatically set these values. How do we set these values so that they reflect on application startup. |
Issue description
I have below config in my application.yml file
grpc:
server:
port: 50055
ssl:
cert-chain: classpath:certificate.crt
private-key: classpath:cert.key
However the private key "cert.key" which I have is encrypted with a password.
How do I pass the password in above yml file.?
Also is there a way to enable ssl for the micronaut server as well with same PEM certificate as we pass for above GRPC server?
micronaut:
application:
name: Elysium GRPC API
server:
port: 8081
ssl:
enabled: true
key-store:
file: classpath:certificate.crt
password: classpath:cert.key
The above config does not work as its expecting a password instead of filepath.
The text was updated successfully, but these errors were encountered: