---
title: 编译ONNX Runtime过程中提示找不到证书路径的解决办法
description: "执行编译ONNX Runtime时提示SSL certificate problem，编译失败。"
url: https://www.hikunpeng.com/document/detail/zh/SRA/ecosystemEnable/ONNXRuntime/kunpengonnxruntime_02_0014.html
sourcePath: /source/zh/SRA/ecosystemEnable/ONNXRuntime/kunpengonnxruntime_02_0014.html
indexId: 28ebbc9e2edf2aaef9aba330de4d3910df082411fcfd26f66492f9fce9a88a4f74
---
# 编译ONNX Runtime过程中提示找不到证书路径的解决办法

#### 问题现象描述

执行编译ONNX Runtime时提示SSL certificate problem，编译失败。


#### 关键过程、根本原因分析

下载依赖组件时，找不到请求目标的有效证书路径。


#### 结论、解决方案及效果

1. 通过浏览器导出证书。
  使用浏览器（本文以谷歌浏览器为例）访问GitHub网站(https://github.com)，按照下图操作顺序导出保存证书，证书文件后缀为crt，例如ca.crt。

2. 安装ca-certificates package。

```
yum install ca-certificates
```


3. 启用动态证书信任存储机制。

```
update-ca-trust force-enable
```


4. 将证书文件上传到服务器“/etc/pki/ca-trust/source/anchors/”目录下。
5. 提取证书文件。

```
update-ca-trust extract
```


6. 重新编译并验证，请参见编译安装源码与运行和验证。
