Fix bug in certificate making code.