Skip to content

Commit

Permalink
Update openssl.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaEstes committed Mar 16, 2016
1 parent a70a605 commit f7727da
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions openssl.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,17 @@ openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
```

- Use `server.crt` and `server.key`

### Encypt/Decrypt file

```
# Encrypt
openssl aes-128-cbc -a -e -pass pass:test -in vars -out vars.enc
# Puts encrypted data into vars.enc file
# Decrypt
openssl aes-128-cbc -a -d -pass pass:test -in vars.enc
# Outputs decrypted data to STDOUT
```

NOTE: See `openssl passpharse arguments` for information on using the password on the commandline. It can be changed to a file or an environment variable.

0 comments on commit f7727da

Please sign in to comment.