Function detects ssl context

def register_ssl_context(self):
        """
        Function detects ssl context
        """
        if not empty('ssl', self.config['app']):
            self.ssl_context = self.config['app']['ssl']
        else:
            self.ssl_context = None