Fix .pem here too.
Fix update.sh to write the right certificate.