boulder/test/js
Jacob Hoffman-Andrews eecf4b305e Add instructions and clarify openssl command line. 2015-04-27 15:50:44 -07:00
..
README.md Update readme for test directory. 2015-04-10 16:58:50 -07:00
acme-util.js Addressing JCJ comments 2015-03-17 10:17:21 -04:00
crypto-util.js Addressing JCJ comments 2015-03-17 10:17:21 -04:00
package.json Improve test.js. 2015-04-24 12:40:37 -07:00
test.js Add instructions and clarify openssl command line. 2015-04-27 15:50:44 -07:00

README.md

A JS tester for boulder

The node.js scripts in this directory provide a simple end-to-end test of Boulder. (Using some pieces from node-acme) To run:

Install dependencies (run in this directory).

npm install

Run boulder in default test mode (no Yubikey, start cfssl automatically):

cd ../
./start.sh

To run cfssl with a Yubikey:

(You'll need to make your own key, cert, and policy.)

go install -tags pkcs11 github.com/cloudflare/cfssl/cmd/cfssl
cfssl serve -port 9000 -ca ca.cert.pem \
              -pkcs11-module "/Library/OpenSC/lib/opensc-pkcs11.so" \
              -pkcs11-token "Yubico Yubik NEO CCID" \
              -pkcs11-pin 123456 \
              -pkcs11-label "PIV AUTH key" \
              -config policy.json

Client side

mkdir -p .well-known/acme-challenge/
node test.js
mv -- *.txt .well-known/acme-challenge/ # In a different window
python -m SimpleHTTPServer 5001         # In yet another window