Skip to content

Instantly share code, notes, and snippets.

View acherunilam's full-sized avatar

Adithya Cherunilam acherunilam

View GitHub Profile

Keybase proof

I hereby claim:

  • I am acherunilam on github.
  • I am acherunilam (https://keybase.io/acherunilam) on keybase.
  • I have a public key ASA0-ZMd1P2fvZ-BCAuA2m2c9ELfZXgZNc0aebHGH6esyAo

To claim this, I am signing this object:

@acherunilam
acherunilam / crypto.sh
Last active December 21, 2016 22:55
Compilation of OpenSSL commands required for basic crypto
## Asymmetric Encryption ##
# generate RSA-2048 private key
openssl genrsa -aes256 -passout pass:passphrase -out private_key.pem 2048
# generate corresponding public key
openssl rsa -in private_key.pem -passin pass:passphrase -pubout -out public_key.pem
# encrypt using public key
openssl rsautl -encrypt -pubin -inkey public_key.pem -in message.txt -out message.txt.encrypted
# decrypt using private key
openssl rsautl -decrypt -inkey private_key.pem -passin pass:passphrase -in message.txt.encrypted -out message.txt.decrypted
@acherunilam
acherunilam / influxdb.conf
Created May 3, 2016 12:23
Nginx config for InfluxDB HA
http {
client_max_body_size 20M;
upstream influxdb {
server server1:8086;
server server2:8086;
}
upstream relay {
server server1:9096;
server server2:9096;