无法写入“随机状态”e为65537 (0x10001)[复制]

时间:2020-12-02 13:09:58

This question already has an answer here:

这个问题已经有了答案:

Right now I am building a hybrid app using PhoneGap. To make my app available for Apple devices I need an iOS signing key that I can upload to PhoneGap Build. This tutorial explains how to build an iOS signing key on Windows using OpenSSL. I followd this tutorial and installed OpenSSL-Win 64, but every time I run this command : openssl genrsa -des3 -out ios.key 2048 I get de following error message: OpenSSL unable to write 'random state' e is 65537 (0x10001)

现在我正在使用PhoneGap构建一个混合应用程序。为了让我的应用能在苹果设备上使用,我需要一个iOS签名密钥,我可以上传至PhoneGap构建。本教程介绍如何使用OpenSSL在Windows上构建iOS签名密钥。我跟随本教程并安装了openssl - win 64,但每次运行这个命令时,都使用openssl genrsa -des3 out ios。key 2048我得到了以下错误消息:OpenSSL无法写入“随机状态”e是65537 (0x10001)

I did some research on the internet and some people are say that you need a HOME system variable. So I created one on my Windows laptop and the location of my HOME variable is C:\. I ran the command OpenSSL unable to write 'random state' e is 65537 (0x10001) again but I still received the same error message.

我在网上做了一些研究,有些人说你需要一个家庭系统变量。所以我在我的Windows笔记本电脑上创建了一个,我的家庭变量的位置是C:\。我运行的命令OpenSSL不能写入‘random state’e是65537 (0x10001),但是我仍然收到了相同的错误消息。

I hope someone can help me because I don't know what I am doing wrong! :(

我希望有人能帮助我,因为我不知道我做错了什么!:(

1 个解决方案

#1


1  

I receive the same error unless I am running OpenSSL as administrator.

除非我以管理员身份运行OpenSSL,否则我将收到相同的错误。

Right click OpenSSL and try Run as administrator and try the command again. That gets rid of the error message for me.

右键单击OpenSSL并尝试作为管理员运行,并再次尝试该命令。这就消除了我的错误信息。

Additional notes from the OpenSSL FAQ:

OpenSSL常见问题解答的附加说明:

2. Why do I get an "unable to write 'random state'" error message?

Sometimes the openssl command line utility does not abort with a "PRNG not seeded" error message, but complains that it is "unable to write 'random state'". This message refers to the default seeding file (see previous answer). A possible reason is that no default filename is known because neither RANDFILE nor HOME is set. (Versions up to 0.9.6 used file ".rnd" in the current directory in this case, but this has changed with 0.9.6a.)

有时,openssl命令行实用程序不会以“未播”错误消息中止,但会抱怨它“不能写入‘随机状态’”。此消息引用默认的seeding文件(参见前面的答案)。一个可能的原因是,没有一个默认的文件名是已知的,因为RANDFILE和HOME都没有设置。(版本最高为0.9.6使用文件)。在本例中,在当前目录中,但这已经更改为0.9.6a。

Here is a link to the FAQ, including the "previous question" that it refers to.

这里有一个关于FAQ的链接,包括它提到的“以前的问题”。

#1


1  

I receive the same error unless I am running OpenSSL as administrator.

除非我以管理员身份运行OpenSSL,否则我将收到相同的错误。

Right click OpenSSL and try Run as administrator and try the command again. That gets rid of the error message for me.

右键单击OpenSSL并尝试作为管理员运行,并再次尝试该命令。这就消除了我的错误信息。

Additional notes from the OpenSSL FAQ:

OpenSSL常见问题解答的附加说明:

2. Why do I get an "unable to write 'random state'" error message?

Sometimes the openssl command line utility does not abort with a "PRNG not seeded" error message, but complains that it is "unable to write 'random state'". This message refers to the default seeding file (see previous answer). A possible reason is that no default filename is known because neither RANDFILE nor HOME is set. (Versions up to 0.9.6 used file ".rnd" in the current directory in this case, but this has changed with 0.9.6a.)

有时,openssl命令行实用程序不会以“未播”错误消息中止,但会抱怨它“不能写入‘随机状态’”。此消息引用默认的seeding文件(参见前面的答案)。一个可能的原因是,没有一个默认的文件名是已知的,因为RANDFILE和HOME都没有设置。(版本最高为0.9.6使用文件)。在本例中,在当前目录中,但这已经更改为0.9.6a。

Here is a link to the FAQ, including the "previous question" that it refers to.

这里有一个关于FAQ的链接,包括它提到的“以前的问题”。