const isUsingCustomSSL = (customHostname: CustomHostname): boolean => {
if (
!customHostname.ssl?.certificate_authority ||
customHostname.ssl.certificate_authority !== 'digicert'
) {
return true
} else {
const certificates = customHostname.ssl.certificates || []
return !!(
certificates.length && certificates[0]['issuer'] !== 'CloudflareInc'
)
}
}