---
title: 使用haf-tool生成证书时，偶发生成错误的解决方法
description: "使用haf-tool生成证书时，偶发生成错误，提示如下信息。"
url: https://www.hikunpeng.com/document/detail/zh/omniruntime/omnidata/kunpengbds_omniruntime_20_0136.html
sourcePath: /source/zh/omniruntime/omnidata/kunpengbds_omniruntime_20_0136.html
indexId: da8ee143e2c1dec026279f514c1709f1d6afe1d57b3510164b84f57816eef22367
---
# 使用haf-tool生成证书时，偶发生成错误的解决方法

#### 问题现象描述

使用haf-tool生成证书时，偶发生成错误，提示如下信息。

```
Check whether environment variables are overwritten
```


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

启动OmniData时，已经在当前Shell环境中执行了主机节点脚本，导致运行时和本地的OpenSSL命令版本冲突。


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

该错误一般是在启动OmniData时，已经在当前Shell环境中执行了主机节点脚本，导致运行时和本地的OpenSSL命令版本冲突，执行如下证书生成命令时，重新开启一个Shell即可。

```
/home/omm/omnidata-install/haf-host/tools/scripts/csr_gen_host.sh generate host csr failed
```
