#!/bin/sh

# acmetool account-thumbprint

# This for the account on the staging server
#thumbprint="hzFrnfag4_k55ojNJOYDrKROmgVfoz1h2vEAu2BIY44"

# This for the account on the production server
thumbprint="mPTCitEzcWyjw-JE28tJoeBgtFwpS5gNUdaFjvbFCcU"

echo "Content-Type: text/plain; charset=us-ascii"
echo
echo "${PATH_INFO#/}" | egrep -q '^[0-9a-zA-Z_-]+$' && echo "${PATH_INFO#/}.${thumbprint}"
