export certificate and key