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