---
title: 使用haf-tool生成证书时，偶发生成错误的解决方法
description: "使用haf-tool生成证书时，偶发生成错误，提示如下信息。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2300/bds/kunpengbds_omniruntime_20_0103.html
sourcePath: /source/zh/kunpengboostkithistory/2300/bds/kunpengbds_omniruntime_20_0103.html
indexId: 020f0960cdf0506f4fb624eda267b876253eec3cd969831261af2ecb8547f0c178
---
# 使用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
```
