Remake the certificate chain if any part of it is missing.