Skip to content

Commit c848a57

Browse files
committed
add update ssl bash command
1 parent 209197f commit c848a57

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ The codebase for [coderwall.com](https://coderwall.com). Coderwall is a develope
1010
* Postgres
1111
* Heroku Toolbelt (or foreman gem)
1212

13-
1413
## Get Started
14+
1515
```bash
1616
cp .env.sample .env # (most settings are not required for core functionality)
1717
bundle install
@@ -22,8 +22,5 @@ heroku local
2222
## Updating SSL
2323

2424
```
25-
$ heroku run rake letsencrypt_plugin
26-
# copy output to cert and key files
27-
$ heroku certs:update coderwall.com-cert.pem coderwall.com-key.pem
28-
25+
$ ./update-ssl.sh
2926
```

update-ssl.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
FILE=/tmp/coderwall-certs.txt
4+
5+
extract_cert() {
6+
sed -n "/$1/,/END CERTIFICATE/p" $FILE | tail -n +2
7+
}
8+
9+
heroku run rake letsencrypt_plugin > $FILE
10+
extract_cert coderwall.com-cert.pem > /tmp/coderwall.com-cert.pem
11+
extract_cert coderwall.com-key.pem > /tmp/coderwall.com-key.pem
12+
heroku certs:update /tmp/coderwall.com-cert.pem /tmp/coderwall.com-key.pem --confirm coderwall-next

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy