Questions around using cert/key pair for TLS #22851
-
Hey everyone, while reading through the http reference, specifically about setting up HTTPS/TLS, I had some questions left which I hope to find an answer for here. There is the sentence "Quarkus will first try to load the given files as resources, and uses the filesystem as a fallback" in 3.1 of the referenced article. Here's where my questions start:
I am asking bc. of curiosity, and bc. of a hypothetical situation like this: Situation: Thought: Thanks in advance. brought over from https://groups.google.com/g/quarkus-dev/c/6q3PC36g1a0/m/CozK8-4lAgAJ?utm_medium=email&utm_source=footer (@maxandersen sry for the noise, you were right, this is a better place ;) ) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @DGuhr, load as resources means attempted to load from the classloader. Meaning, delivered via a file inside the project or as a dependency. fallback happens if the resource lookup fails (i.e. the path used does not exist) the lookup is done based on current working directory of the java process. Thus you should be able to use absolute paths or relative ones. For how the certificate key is exactly done @sberyozkin might know better than me? |
Beta Was this translation helpful? Give feedback.
-
Hi @DGuhr, @maxandersen Here are some comments
Max has explained, it is looked at as a
When I looked at the code last time I don't think I saw the keystore being generated into the file system somewhere, it is kept in memory (internally by Vert.x) as far as I recall in this case when you do
If This doc section should be expanded with some clarifications. @cescoffier Hi Clement, can you comment a bit more please, I can follow up with updating the docs. |
Beta Was this translation helpful? Give feedback.
Hi @DGuhr, @maxandersen
Here are some comments
Max has explained, it is looked at as a
classpath
resource firstWhen I looked at the code last time I don't think I saw the keystore being generated into the file system somewhere, it is kept in memory (internally by Vert.x) as far as I recall in this case when you do
If
quarkus.http.ssl.certificate.key-store-file
is set then yes, the password is really necessary, but with those properties, with the in-memory keystore, I guess the default password s…