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