Skip to content

Commit 8294016

Browse files
authored
Merge pull request #210 from HOSTED-POWER/Expand-custom-SSL-with-PFX-extraction
Expanded ssl docs on how to extract from pfx file
2 parents d21def4 + 8a1fe1f commit 8294016

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Configuration/ssl-tls_configuration.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Need an SSL certificate other than Let’s Encrypt? No problem! We offer Sectigo
3131

3232
If you’ve purchased a certificate from another provider, you can still install it easily on your TurboStack server through the Account Management section of the [TurboStack Platform](https://my.turbostack.app "TurboStack Platform"). More info on how to do so can be found [here](/TurboStack%20Platform/accounts#creating-a-new-application-in-the-turbostack-platform)
3333

34+
3435
### Order a standalone SSL certificate
3536

3637
> **It is almost never required to purchase a standalone SSL certificate on TurboStack! Let's Encrypt will cover almost all cases. If you're unsure if this is correct for you, check with our support team first.**
@@ -104,6 +105,19 @@ openssl req -sha256 -new -newkey rsa:4096 -nodes -keyout server.key -out server.
104105
In this case, **server.csr** is our signing request. Provide this to your preferred CA to generate the required files (public key, CA certificate, ...etc)
105106

106107
---
108+
### Extracting Keys and Certificates From a PFX File
109+
Some certificate providers will provide you with a _pfx_ file, containing your encrypted certificates. This will show you how to extract the certificates from that file.
110+
111+
Extract the _fullchain_ certificate:
112+
```bash
113+
openssl pkcs12 -in /path/to/certificate.pfx -nokey -out certificate.pem -nodes
114+
```
115+
116+
Extract the private key:
117+
```bash
118+
openssl pkcs12 -in /path/to/certificate.pfx -nocerts -out priv-key.pem -nodes
119+
```
120+
107121
### Turbostack
108122

109123
_We recommend adding the private key and the certificates via the GUI, because of the formatting._
@@ -133,6 +147,7 @@ You can now configure your application:
133147
![Turbostack GUI Step 2](image/csr/csr_account_hostname_custom_certificate.png)
134148

135149

150+
136151
## Troubleshoot SSL problems
137152
![screenshot of Firefox error message "Did Not Connect: Potential Security Issue"](image/ssl/ssl_error.png)
138153

0 commit comments

Comments
 (0)