def METHOD_NAME(
    cls,
    certificate_data: bytes,
    hive_offset: int,
    reg_section: str,
    key_hash: str,
    open_method: Type[interfaces.plugins.FileHandlerInterface],
) -> Optional[interfaces.plugins.FileHandlerInterface]:
    try:
        dump_name = "{}-{}-{}.crt".format(hive_offset, reg_section, key_hash)
        file_handle = open_method(dump_name)
        file_handle.write(certificate_data)
        return file_handle
    except exceptions.InvalidAddressException:
        vollog.debug(f"Unable to dump certificate file at {hive_offset:#x}")
    return None