Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

learningneverstop12345's avatar

Create file in storage folder

Hi all, how do you store certificate files under the subfolder of the storage folder (ex: storage/ssl) during the build process. The content will get in the environment variables or Secret. and what will be the full path of the created certificate files.

Thanks a lot

0 likes
4 replies
Sinnbeck's avatar

Why do you need certificates in the build process? Can you explain what you are trying to do? The website certificate can be managed by let's encrypt if that type of certificate is fine for the website

1 like
Sinnbeck's avatar

@learningneverstop12345 and why is it needed as part of the build process? Are you using docker?

Isn't this a static certificate that you download once (or once a year) and then just use? Why not put it outside the project folder?

Please or to participate in this conversation.