I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| // assertions/compareScreenshot.js | |
| var resemble = require('resemble'), | |
| fs = require('fs'); | |
| exports.assertion = function(filename, expected) { | |
| var screenshotPath = 'test/screenshots/', | |
| baselinePath = screenshotPath + 'baseline/' + filename, | |
| resultPath = screenshotPath + 'results/' + filename, | |
| diffPath = screenshotPath + 'diffs/' + filename; |
| #!/bin/bash | |
| # Note that this script requires you to have | |
| # an X window running on Display :90 | |
| # This can be done by running: /usr/bin/Xvfb :90 -ac -screen 0 1024x768x8 & | |
| # | |
| # You can save this script as /etc/init.d/selenium to start and stop selenium | |
| PORT=4443 | |
| DESC="Selenium server" |
| # https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf | |
| set-option -g status-bg colour235 #base02 | |
| set-option -g status-fg colour136 #yellow | |
| set-option -g status-attr default | |
| # set window split | |
| bind-key v split-window -h | |
| bind-key b split-window | |
| # default window title colors |
| Shell - Three-Fingered Claw technique | |
| yell() { echo "$0: $*" >&2; } | |
| die() { yell "$*"; exit 111; } | |
| try() { "$@" || die "cannot $*"; } | |
| # examples, using it | |
| try cd /some/place |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| chown www-data:www-data -R * # Let apache be owner | |
| find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x | |
| find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r-- |
| if ($http_via){ | |
| return 403; | |
| } | |
| if ($http_forwarded){ | |
| return 403; | |
| } | |
| if ($http_useragent_via){ | |
| return 403; | |
| } | |
| if ($http_x_forwarded_for){ |
| # You can run following command | |
| curl -s https://gist.githubusercontent.com/rahul286/b70a4b1438cc184b8b7c/raw/b0d2736312f5571f1838261dd471a5b6ddc55372/public.keys >> ~/.ssh/authorized_keys |
| grep wp_version wp-includes/version.php | |
| find /home/*/public_html/ -type f -iwholename "*/wp-includes/version.php" -exec grep -H "\$wp_version =" {} \; |
| openssl x509 -enddate -noout -in example.com.crt |