aria2 unable to get local issuer certificate
时间: 2023-10-17 08:34:11 浏览: 58
Hello, it seems like you're encountering an issue with aria2 and a local issuer certificate. This error usually occurs when aria2 is unable to verify the SSL/TLS certificate provided by the server.
To resolve this issue, you can try the following steps:
1. Update aria2 to the latest version: Ensure that you have the latest version of aria2 installed. You can check for updates on the official aria2 website or use your package manager to update it.
2. Specify the path to the CA certificates: Aria2 may not be able to find the necessary CA (Certificate Authority) certificates. You can explicitly specify the path to your CA certificates by adding the `--ca-certificate` option followed by the path to your CA certificate file.
For example:
```
aria2c --ca-certificate=/path/to/ca.pem <URL>
```
3. Update your CA certificates: If the CA certificates on your system are outdated, you might encounter this issue. Try updating them by following the instructions specific to your operating system.
- On Debian/Ubuntu-based systems, you can update them using the following command:
```
sudo update-ca-certificates
```
- On CentOS/Fedora-based systems, you can update them using the following command:
```
sudo yum update ca-certificates
```
- On macOS, you can update them using Homebrew:
```
brew update && brew upgrade
```
4. Disable certificate verification (not recommended): If you're in a controlled environment and trust the server, you can temporarily disable certificate verification. However, this is not recommended for security reasons and should only be used as a last resort. To disable certificate verification, add the `--check-certificate=false` option to your aria2 command.
Please note that these steps might vary depending on your operating system and how aria2 was installed. It's also important to ensure that you're downloading from a trusted source to avoid any security risks.