add error catching in ssl cert gen, closes #149