Skip to content
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

Certificate file on different disk #51

Closed
Basvkempen1 opened this issue Feb 8, 2024 · 1 comment
Closed

Certificate file on different disk #51

Basvkempen1 opened this issue Feb 8, 2024 · 1 comment

Comments

@Basvkempen1
Copy link

Hey,

We want to store the certificate files on a different disk (S3) because we are suing Vapor which doesnt have local storage.

I wasnt able to find a way to do this.
Did I miss a way to handle this ?

Thanks!

@Namoshek
Copy link
Collaborator

Namoshek commented Feb 8, 2024

You cannot directly reference a file from S3. This is not a limitation of the MQTT client though, it's something the PHP SSL context requires for the cafile and capath options. My suggestion is to download the file into a temporary location and reference that instead.

However, depending on the frequency of these certificate downloads, I see a performance bottleneck. S3 is not built for millisecond latency but for large volumes of files. I'm not familiar with Vapor, but you have the chance to somehow inject the certificate using some kind of configuration or environment variable, I strongly suggest you do that instead.

@Namoshek Namoshek closed this as not planned Won't fix, can't repro, duplicate, stale Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants