LINUX: generate some random data using keygen

aueddonlineaueddonline Member Posts: 611 ■■□□□□□□□□
Hi Guys,

I'm setting up a RADIUS server and using this HOWTO WPA HOWTO - FreeRADIUS Wiki, one of the scripts requires a program to be specified that can generate some random data, the guy in the HOWTO uses dns-keygen, which I can't seem to get hold of, I have another that comes with BIND call dnssec-keygen, but this generates private and public keys and not just some random data I can output to a file, any suggestions? Or where can I get dns-keygen?

I'm running fedora 10.

Just realised I have this on the wrong board, how do I move it?
What's another word for Thesaurus?

Comments

  • MentholMooseMentholMoose Member Posts: 1,525 ■■■■■■■■□□
    You can do something like this to generate the files:

    #dd if=/dev/urandom of=/etc/wireless-auth/DH bs=1M count=1
    #dd if=/dev/urandom of=/etc/wireless-auth/random bs=1M count=1

    If you don't need a specific size, and any amount of random data will do, use "/dev/random" instead of "/dev/urandom" to get data that has a higher degree of randomness.

    /dev/random generates data much slower than /dev/urandom. If you really want to use /dev/random to get a lot of data, you can run the following commands, and end them with Ctrl+C after a while:

    #cat /dev/random > /etc/wireless-auth/DH
    #cat /dev/random > /etc/wireless-auth/random
    MentholMoose
    MCSA 2003, LFCS, LFCE (expired), VCP6-DCV
  • aueddonlineaueddonline Member Posts: 611 ■■□□□□□□□□
    You can do something like this to generate the files:

    #dd if=/dev/urandom of=/etc/wireless-auth/DH bs=1M count=1
    #dd if=/dev/urandom of=/etc/wireless-auth/random bs=1M count=1

    If you don't need a specific size, and any amount of random data will do, use "/dev/random" instead of "/dev/urandom" to get data that has a higher degree of randomness.

    /dev/random generates data much slower than /dev/urandom. If you really want to use /dev/random to get a lot of data, you can run the following commands, and end them with Ctrl+C after a while:

    #cat /dev/random > /etc/wireless-auth/DH
    #cat /dev/random > /etc/wireless-auth/random


    Thanks for your post, i played around with those commands, they were very interesting. I ended up going with the password generator ranpwd

    onto the next problem :)

    CAPL=<span class="comment.h1">/etc/pki/tls/misc/CA.pl</span>/
    KEYGEN=<span class="comment h1">/usr/bin/ranpwd</span>/

    I have these two lines in my script, I added the '/' end because I was getting a newline token error on both lines, i'm now getting 'no such file or directory, or word to that effect.

    the file /usr/bin/ranpwd and /etc/pki/tls/misc/CA.pl both exist so i'm a little stuck
    What's another word for Thesaurus?
  • MentholMooseMentholMoose Member Posts: 1,525 ■■■■■■■■□□
    Thanks for your post, i played around with those commands, they were very interesting. I ended up going with the password generator ranpwd

    onto the next problem :)

    CAPL=<span class="comment.h1">/etc/pki/tls/misc/CA.pl</span>/
    KEYGEN=<span class="comment h1">/usr/bin/ranpwd</span>/

    I have these two lines in my script, I added the '/' end because I was getting a newline token error on both lines, i'm now getting 'no such file or directory, or word to that effect.

    the file /usr/bin/ranpwd and /etc/pki/tls/misc/CA.pl both exist so i'm a little stuck

    I don't think there should be HTML code in that script at all. Try this:

    CAPL=/etc/pki/tls/misc/CA.pl
    KEYGEN=/usr/bin/ranpwd
    MentholMoose
    MCSA 2003, LFCS, LFCE (expired), VCP6-DCV
Sign In or Register to comment.