- Blog
- Howtos
- anything generator
- apache
- asterisk
- autofs
- autoload
- automount
- backup db
- callcentric
- centos
- chumby
- cipher list
- cookies
- ctags
- dns
- dovecot
- glue fleece
- hacking
- httpd
- IE
- iFrame
- ip
- ispconfig
- javascript
- lighttpd
- linux
- media player
- move networks
- mysql
- mysqldiff
- mythtv
- Network Solutions
- openssl
- osx
- os x
- P3P Compact Policy
- php
- postfix
- proftpd
- proxy
- python
- route
- ruby
- screen scraping
- shell
- shell scripts
- slapd
- smb
- ssh
- sshfs
- SSLCertificateChainFile
- sslv2
- stunnel
- suphp
- taglist
- telnet
- trace
- verisign
- vi
- vsftpd
- Scripts
- About
OpenSSL unable to write 'random state'
Submitted by adam on Fri, 2009-04-03 12:07.
$ openssl genrsa -des3 -out adamyoung.net.key 1024 Generating RSA private key, 1024 bit long modulus .........................++++++ .................................................................++++++ unable to write 'random state' e is 65537 (0x10001) Enter pass phrase for adamyoung.net.key: aborted! 4553:error:0906906F:PEM routines:PEM_ASN1_write_bio:read key:pem_lib.c:331:
The Fix:
There's a .rnd file that OpenSSL needs to write to. You should change the ownership to the proper user and group. Typically it's in the $HOME directory:
sudo chown adam.adam ~/.rnd
If this doesn't work, check $RANDFILE or generate the key with -rand

good
It is a ve ry helpful scheme.
essay company
adam young
he's a great boy...I iove him..
Another way...
Guys, an alternative to accomplish this task without change the ownership of the .rnd file, is execute the openssl command with SUDO.
Bye
thanks!
wow this worked quick thanks a bunch !
was having this trouble on ubuntu 9.10
thank you!
hi!
Thank you very much for your help, i could find what was happening...
I executed the command with sudo and it worked.
belief
u would not believe u r eyes
if ten million fireflies
lit up the world as i fell asleep
case they would fill the open air
and leave teardrops everywher u think me rude but
I would just stand and stare
WHO?
WHO ARE YOU? ARE YOU WHO WE THINK YOU ARE? CAN WE TRUST YOU, "ADAM"? IS THAT YOUR REAL NAME? HUH? PUNK!
Guys, an alternative to
Guys, an alternative to accomplish this task without change the ownership of the .rnd file, is execute the openssl command with SUDO.
Bye
Oyunlar
Thanks It Work!!!
Thanks Adam, I tested this on Ubuntu server 8.04 and it works. I no longer get the message unable to write 'randow state'
after signing the certificate and adding to db.