Generate certificate authority and certificate.
Tidy cert configuration.