无法写入 'random state' e 是 65537 (0x10001)

Unable to write 'random state' e is 65537 (0x10001)

现在我正在使用 PhoneGap 构建混合应用程序。为了让我的应用程序可用于 Apple 设备,我需要一个 iOS 签名密钥,我可以将其上传到 PhoneGap Build。这个 tutorial 解释了如何使用 OpenSSL 在 Windows 上构建 iOS 签名密钥。我按照本教程安装了 OpenSSL-Win 64,但每次我 运行 这个命令:openssl genrsa -des3 -out ios.key 2048 我都会收到以下错误消息:OpenSSL unable to write 'random state' e is 65537 (0x10001)

我在网上做了一些调查,有人说你需要一个 HOME 系统变量。所以我在我的 Windows 笔记本电脑上创建了一个,我的 HOME 变量的位置是 C:\。我再次 运行 命令 OpenSSL unable to write 'random state' e is 65537 (0x10001) 但我仍然收到相同的错误消息。

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

我收到同样的错误,除非我是 运行 OpenSSL 管理员。

右键单击 OpenSSL 并尝试 Run as administrator 并再次尝试该命令。这为我消除了错误消息。

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.)

Here is a link to the FAQ,包括它所指的“上一题”。