Skip to content

Instantly share code, notes, and snippets.

@jimallman
Created July 22, 2014 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimallman/2c60be5eb49e7a443133 to your computer and use it in GitHub Desktop.
Save jimallman/2c60be5eb49e7a443133 to your computer and use it in GitHub Desktop.
HOWTO install keys for HTTPS
- manual scp of private and public key files for HTTPS...
$ cd ~/.ssh/opentree/ssl-keys
NOTE that we can't place these remotely, since admin != root
$ scp opentreeoflife.org.key admin@ot##:~
$ scp STAR_opentreeoflife_org.zip admin@ot##:~
Login as root for final placement and security
$ ssh admin@ot##
$ sudo mv opentreeoflife.org.key /etc/ssl/private/
$ sudo chown root:root /etc/ssl/private/opentreeoflife.org.key
$ sudo chmod 600 /etc/ssl/private/opentreeoflife.org.key
Create a dir to hold our public key
$ sudo mkdir -p /etc/ssl/certs/opentree
$ sudo chmod 755 /etc/ssl/certs/opentree
$ sudo mv STAR_opentreeoflife_org.zip /etc/ssl/certs/opentree/
$ cd /etc/ssl/certs/opentree
$ sudo unzip STAR_opentreeoflife_org.zip
This creates a complete chain of certs here
$ sudo chown root:root ./*
$ sudo chmod 644 ./*
- other steps should be covered by deployment tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment