replace certs and keys.