def parse_opensslconf(self):
        """
        Parse the openssl.conf file to find relevant paths.
        """
        self.config.read(self.configfile)
        configuration = {}
        for section in self.__class__.DEFAULT.keys():
            for option in self.__class__.DEFAULT[section].keys():
                raw = self.config.get(section, option)
                value = raw.split("#")[0].strip()  # Remove comments

                if "$" in value:  # Manage openssl variables
                    variable = "".join(value.split("$")[1:])
                    variable = variable.split("/")[0]
                    path = "/" + "/".join(value.split("/")[1:])
                    varvalue = self.config.get(section, variable)
                    value = varvalue.split("#")[0].strip() + path
                try:
                    configuration[section].update({option: value})
                except __HOLE__:
                    configuration[section] = {}  # New section
                    configuration[section].update({option: value})
        return configuration
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/utilities/certificate.py/Config.parse_opensslconf