Skip to content

Latest commit

 

History

History
252 lines (151 loc) · 9.04 KB

CREDITS.md

File metadata and controls

252 lines (151 loc) · 9.04 KB

Credits, Notes, and Reference

Server Headers and Config

Smart Cards

  • A Case for Native Smart Card Support in Browsers - "Now, signature is one thing, identification (TLS client auth) is another. Allegedly, things should work there – PKCS#11 is a standard that should allow TLS client auth to happen with a smart card. Reality is – it doesn’t. You often need a vendor-specific PKCS#11 library. OpenSC, which is a cool tool that works with many smart cards, only works with Firefox and Safari"

OpenSC

Install opensc:

brew install opensc

Detect if a card-reader is present:

opensc-tool -n
pkcs15-tool --list-public-keys
pkcs15-tool --read-public-key 1
pkcs15-tool --read-certificate 1 | openssl x509 -noout -text

OpenSSL

Web E-Id

Web Crypto API

Cloudflare CFFSL

Max.Gov

  • MAX.gov Login - "Users with a working PIV or CAC card can associate their card with an existing MAX account. This provides 2-factor authentication that is more secure than a User ID and Password for accessing sensitive-but-unclassified (SBU) content setup to require MAX Secure+. To associate your PIV or CAC card you will need your MAX UserID and a working password. (Thereafter you will be able to login to MAX using just your PIV or CAC card and its built-in PIN number.)"

Sinatra

NGINX

brew install nginx
######################################################################## 100.0%
==> Pouring nginx-1.13.9.sierra.bottle.tar.gz
==> Caveats
Docroot is: /usr/local/var/www

The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.

nginx will load all files in /usr/local/etc/nginx/servers/.

To have launchd start nginx now and restart at login:
  brew services start nginx
Or, if you don't want/need a background service you can just run:
  nginx
==> Summary
🍺  /usr/local/Cellar/nginx/1.13.9: 23 files, 1.4MB

Running NGINX Locally

Inspect the configuration file:

atom /usr/local/etc/nginx/nginx.conf

Start the server to test the installation:

brew services start nginx # then visit http://localhost:8080/ to find a welcome message

Stop the server, then make adjustments to the config file:

brew services stop nginx

NGINX And Ruby/Rack

Passenger

Thin

Unicorn

Puma

Rack

Cloud.gov

Installing Cloud Foundry:

brew tap cloudfoundry/tap
brew install cf-cli

Logging in:

cf login -a api.fr.cloud.gov --sso

Verify target space:

cf target

Deploy from any branch (git-unaware):

cf push card-reader-web-client # then visit https://card-reader-web-client.app.cloud.gov/

Checking logs:

cf logs card-reader-web-client --recent

Cloud Foundry

Assets and Design

Icons made by Kirill Kazachek from www.flaticon.com licensed under Creative Commons BY 3.0

Twitter Bootstrap