Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error message when generating private key

467 views
Skip to first unread message

goggel

unread,
Dec 22, 2012, 5:17:09 PM12/22/12
to
Hi

I get an error message when I try to generate a private key. I can't figure
out what the error message is and I have tried to google it. But there is
noone that I can find that has the same problem.
The commeand I try to run is: openssl genrsa -des3 -out privkey.pem 2048
I then get the following output:
Generating RSA private key, 2048 bit long modulus
.......+++
..+++
e is 65537 (0x10001)
User interface error
1881:error:0906906F:PEM routines:PEM_ASN1_write_bio:read key:pem_lib.c:334:

Is there anyone that could help. I'm trying to run the command as root and I
got the access to the folder I'm trying to run the command in (I have tried
diffrent folders also).



--
View this message in context: http://openssl.6102.n7.nabble.com/Error-message-when-generating-private-key-tp42904.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org

Dave Thompson

unread,
Dec 22, 2012, 6:40:42 PM12/22/12
to
> From: owner-ope...@openssl.org On Behalf Of goggel
> Sent: Saturday, 22 December, 2012 17:17

> I get an error message when I try to generate a private key.
> I can't figure
> out what the error message is and I have tried to google it.
> But there is
> noone that I can find that has the same problem.
> The commeand I try to run is: openssl genrsa -des3 -out
> privkey.pem 2048
> I then get the following output:
> Generating RSA private key, 2048 bit long modulus
> .......+++
> ..+++
> e is 65537 (0x10001)
> User interface error
> 1881:error:0906906F:PEM routines:PEM_ASN1_write_bio:read
> key:pem_lib.c:334:
>
> Is there anyone that could help. I'm trying to run the
> command as root and I
> got the access to the folder I'm trying to run the command in
> (I have tried
> diffrent folders also).
>
"User interface error" is the problem. It needs to prompt you
for the passphrase to use to encrypt the privatekey-file with,
and is failing somehow (but we don't know exactly how).

What type of system are you running on (Windows, Linux, Mac,
Sun, HP, VMS(!), etc) and what kind of interface to it on
systems that have more than one (console window, ssh+terminal,
telnet+terminal, xterm, other emulator, real terminal, etc)?

Alternatively, if you can't figure out the problem with prompting,
you can avoid it by using -passout to supply the password instead.

goggel

unread,
Dec 23, 2012, 12:17:26 PM12/23/12
to
I'm using debian (linux) with a ssh+terminal shell.

I got it to work with the passout command, but I would love to know what the
problem is without -passout since it seems like a lot of people got it to
work.



--
View this message in context: http://openssl.6102.n7.nabble.com/Error-message-when-generating-private-key-tp42904p42911.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
0 new messages