feature: onCertificateRequired added
feature: onCertificateMissing added