fixing certs and key stores