The context must be a SecureContext.