-- Later, Darin
On Thu, Jan 16, 2014 at 7:56 AM, dan (ddp) <[email protected]> wrote: > On Wed, Jan 15, 2014 at 4:40 PM, Darin Perusich <[email protected]> wrote: >> Hello, >> >> I'm automating the creation of agent key and want to know if there's >> an limitations to the number of characters the authentication key? I'm >> planning to generate a unique hash which is 80 characters long. >> > > How are you generating the key? The current applications that create > keys (manage_agents and ossec-authd) should create keys of the correct > length. I was going to generate either a sha1 or md5 hash derived from hostname, ip, id, and a seed. After looking at the code it looks like ossec uses md5, and generates a key size of 66 chars based on 5 random values derived from some timings, name, ip, id. > You'd actually have to look at the code to see what the limit is. > >> client.keys xample: >> >> 003f0671 host1 >> 7a056288d97ce78511cf601e5d736f5e0942d999cfa82d9563e4ce55cb14fe33 >> >> Thanks! >> -- >> Later, >> Darin >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "ossec-list" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. > > -- > > --- > You received this message because you are subscribed to the Google Groups > "ossec-list" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because you are subscribed to the Google Groups "ossec-list" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
