A General and Secure Certification-based Encryption Construction