check to make sure private keys are not allowed

Signed-off-by: Tim Henderson <tim.tadh@gmail.com>