intercity / intercity-next

Web control panel to deploy apps on your servers (with Dokku)
https://intercity.io/
MIT License
116 stars 23 forks source link

Fix SSL key validation #250

Closed michiels closed 5 years ago

michiels commented 5 years ago

This PR fixes a problem reported in #217 that our SSL key validation was too strict. We would expect a header like

-----BEGIN RSA PRIVATE KEY-----

but most SSL keys are generated as:

-----BEGIN PRIVATE KEY-----

This PR allows both headers and also adds a test for this validation.

Fixes #217