'Download OpenSSL source dist'

def _download_openssl(self):

    src_dir = os.path.dirname(self.src_file)
    if (not os.path.isdir(src_dir)):
        os.makedirs(src_dir)
    url = self.url_template.format(self.version)
    log.info('Downloading    OpenSSL    from    {}'.format(url))
    req = urlopen(url, cadefault=CADEFAULT)
    data = req.read()
    log.info('Storing    {}'.format(self.src_file))
    with open(self.src_file, 'wb') as f:
        f.write(data)
