mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-06 09:15:31 +02:00
organizing contributed helpful scripts into a ./scripts/ folder before we mess up the app root directory
This commit is contained in:
@@ -104,7 +104,7 @@ $ docker run -p 3000:3000 -p 35729:35729 -v /Users/mdl/workspace/mean-stack/mean
|
||||
## Running in a secure environment
|
||||
To run your application in a secure manner you'll need to use OpenSSL and generate a set of self-signed certificates. Unix-based users can use the following commnad:
|
||||
```
|
||||
$ sh generate-ssl-certs.sh
|
||||
$ sh ./scripts/generate-ssl-certs.sh
|
||||
```
|
||||
Windows users can follow instructions found [here](http://www.websense.com/support/article/kbarticle/How-to-use-OpenSSL-and-Microsoft-Certification-Authority)
|
||||
To generate the key and certificate and place them in the *config/sslcerts* folder.
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/bash
|
||||
echo "Generating self-signed certificates..."
|
||||
mkdir -p ./config/sslcerts
|
||||
openssl genrsa -out ./config/sslcerts/key.pem -aes256 1024
|
||||
openssl req -new -key ./config/sslcerts/key.pem -out ./config/sslcerts/csr.pem
|
||||
openssl x509 -req -days 9999 -in ./config/sslcerts/csr.pem -signkey ./config/sslcerts/key.pem -out ./config/sslcerts/cert.pem
|
||||
rm ./config/sslcerts/csr.pem
|
||||
chmod 600 ./config/sslcerts/key.pem ./config/sslcerts/cert.pem
|
||||
Reference in New Issue
Block a user