My aria2 version is 1.31.0,support BitTorrent, GZip, HTTPS, Message Digest, Metalink, XML-RPC.But when i download from https,it throw an error
[root@localhost build]# /etc/aria2-1.31.0/bin/aria2c https://google.com
02/06 15:31:14 [NOTICE] Downloading 1 item(s)
02/06 15:31:14 [ERROR] CUID#7 - Download aborted. URI=https://google.com
Exception: [../../src/AbstractCommand.cc:351] errorCode=1 URI=https://google.com
-> [../../src/SocketCore.cc:932] errorCode=1 SSL initialization failed:The request is invalid.
How can i fix it?
thk.
The error seems to come from gnutls. Have you built aria2 by yourself?
It may be because gnutls is old. I'm not sure it is the cause of the issue.
I use gnutls 3.5.8, and have no problem.
If you could, try building aria2 with openssl.
tks 👍 , i try to build aria2 --without-gnutls --with-openssl, it can work. And i try to install gnutls 3.5.8, build aria2 with gnutls, it can also work.
翻译英文真难。。。。 :-D
[root@localhost tmp]# /etc/aria2-1.31.0/bin/aria2c -v
aria2 版本 1.31.0
Copyright (C) 2006, 2016 Tatsuhiro Tsujikawa
* 配置 *
已开启的特性: BitTorrent, HTTPS, Message Digest
哈希算法: sha-1, sha-224, sha-256, sha-384, sha-512, md5
库: GnuTLS/3.5.8 nettle GMP/6.1.2
编译器: gcc 6.3.0
built by x86_64-pc-linux-gnu
on Feb 8 2017 16:18:40
系统: Linux 2.6.32-042stab116.1 #1 SMP Wed May 4 16:21:02 MSK 2016 x86_64
[root@localhost tmp]# /etc/aria2-1.31.0/bin/aria2c https://google.com
02/08 16:24:58 [NOTICE] Downloading 1 item(s)
02/08 16:24:59 [NOTICE] 下载已完成:/tmp/index.html
下载结果:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
151688|OK | 41KiB/s|/tmp/index.html
状态标识:
(OK):下载已完成。
add this extra setting when aria2c start (Perhaps it should be written to the configuration file)
check-certificate=false
Most helpful comment
The error seems to come from gnutls. Have you built aria2 by yourself?
It may be because gnutls is old. I'm not sure it is the cause of the issue.
I use gnutls 3.5.8, and have no problem.
If you could, try building aria2 with openssl.