Set up a self-signed SSL certificate
Edit on GitHubA self-signed SSL certificate is an identity certificate that is signed by the same entity whose identity it certificates. Such a certificate is used only for local development. For production, we recommend generating a valid SSL certificate signed by an official certification center like Let’s Encrypt.
There is a self-signed SSL certificate shipped with Spryker. It is located in docker/deployment/default/spryker_ca.crt.
To access your instance via a secure connection, add the certificate to trusted authorities in the host system.
Set up a custom SSL certificate
- To use your own custom SSL certificate with Spryker, add the following files to
$HOME/.spryker/certs/
:
default.crt
– your public X.509 certificatedefault.key
– the matching private key
- Secure your private key so only you can read it:
chmod 600 "$HOME/.spryker/certs/default.key"
- If you have an intermediate CA chain, concatenate them (leaf first, then intermediates) into
default.crt
:
cat leaf.crt intermediate.crt >> "$HOME/.spryker/certs/default.crt"
Now the local docker SDK loads your custom certificate and key.
Set up a self-signed SSL certificate on MacOS
To add spryker_ca.crt
to trusted authorities on MacOS, follow the steps:
-
Open Keychain Access.
-
Select File > Import Items.
-
Select
spryker_ca.crt
and click Open. -
Go to the Certificates category.
-
Right-click the Spryker certificate and select Get Info.
-
Open the Trust drop-down menu.
-
In the When using this certificate drop-down menu, select Always Trust.
Ensure that you can open Yves, Zed, and Glue without warnings via HTTPS.
Set up a self-signed SSL certificate on Linux
On Linux, you can add the certificate to trusted authorities only in a browser. Below, you can find instructions for importing the certificate in Google Chrome and Firefox.
Set up a self-signed SSL certificate in Google Chrome on Linux
To add spryker_ca.crt
to trusted authorities in Google Chrome on Linux, follow the steps:
- Click More
.
- Select Settings.
- On the Settings page, go to Advanced > Manage certificates.
- Go to the Authorities tab.
- Select Import.
- Select
spryker_ca.crt
and click Open. - Select Trust this certificate for identifying websites.
- Click OK to save the changes.
- Restart the browser.
Ensure that you can open Yves, Zed, and Glue without warnings via HTTPS.
Set up a self-signed SSL certificate in Firefox on Linux
To add spryker_ca.crt
to trusted authorities in Firefox on Linux, follow the steps:
- Click Open menu
.
- Select Options.
- On the Options page, select Privacy & Security.
- Scroll down to the Certificates section.
- Click View Certificates.
- In the Authorities tab, click Import.
- Select
spryker_ca.crt
. - Select Trust this CA to identify websites.
- Click OK to save the changes.
Ensure that you can open Yves, Zed, and Glue without warnings via HTTPS.
Set up a self-signed SSL certificate on Windows
To add spryker_ca.crt
to trusted authorities on Windows, follow the steps:
- To open the Run window, press Win+R.
- In the Open field, enter
mmc
and press Enter. - To confirm the action, click Yes.
- From the File menu, select Add/Remove Snap-in….
Alternatively, to open the Add or Remove Snap-ins window, press Ctrl+M.
-
In the Available snap-ins list, select Certificates.
-
Select Add >.
-
Click Certificates (local computer) > Trusted Root Authorities.
-
Right-click the Certificates folder and select All Tasks > Import.
-
Select the
spryker_ca.crt
file and click OK.
Ensure that you can open Yves, Zed, and Glue without warnings via HTTPS.
Thank you!
For submitting the form