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

simple tool for generating SNMPv3 authkey & privkey

2,439 views
Skip to first unread message

Daniel Ng

unread,
Oct 5, 2010, 3:12:10 AM10/5/10
to
Hi,

I have a need to generate an authkey and privkey given a passphrase
and the authentication and encryption algos (ie. MD5/SHA, DES/AES).

The resultant keys can just be printed to stdout.

Does such a simple tool exist? If so, please point me to one.


Cheers,
Daniel

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Raphaël 'SurcouF' Bordet

unread,
Oct 5, 2010, 6:15:18 PM10/5/10
to
Le mardi 05 octobre 2010 à 18:12 +1100, Daniel Ng a écrit :
> Hi,

Hi,

> I have a need to generate an authkey and privkey given a passphrase
> and the authentication and encryption algos (ie. MD5/SHA, DES/AES).
>
> The resultant keys can just be printed to stdout.
>
> Does such a simple tool exist? If so, please point me to one.

Did you've already tried snmpkey provided with Net::SNMP Perl module ?

http://search.cpan.org/~dtown/Net-SNMP-5.2.0/snmpkey.PL


Regards,

--
Raphaël 'SurcouF' Bordet

Daniel Ng

unread,
Oct 5, 2010, 7:51:27 PM10/5/10
to
>Did you've already tried snmpkey provided with Net::SNMP Perl module ?

>http://search.cpan.org/~dtown/Net-SNMP-5.2.0/snmpkey.PL

Fantastic! Thanks for your help Raphaël.

Cheers,
Daniel

Dave Shield

unread,
Oct 6, 2010, 3:51:08 AM10/6/10
to
2010/10/5 Raphaël 'SurcouF' Bordet <sur...@debianfr.net>:

> Did you've already tried snmpkey provided with Net::SNMP Perl module ?
>
> http://search.cpan.org/~dtown/Net-SNMP-5.2.0/snmpkey.PL


Though remember that David's Net::SNMP module is not related to the
Net-SNMP project in any way (other than the subject matter, obviously!).

So when it talks about using the Net::SNMP session() constructor
(with arguments -privkey or -authkey), this assumes that you are using
the Net::SNMP module.
The equivalent elements of the Net-SNMP project perl module
(i.e. SNMP::Session) does not have the same API, and won't recognise
these options.

But of course, you can use David's module to query a Net-SNMP (or
any other) agent. That's perfectly valid.

Dave

Raphaël 'SurcouF' Bordet

unread,
Oct 8, 2010, 6:12:49 PM10/8/10
to
Le mercredi 06 octobre 2010 à 10:51 +1100, Daniel Ng a écrit :
> >Did you've already tried snmpkey provided with Net::SNMP Perl module ?
>
> >http://search.cpan.org/~dtown/Net-SNMP-5.2.0/snmpkey.PL
>
> Fantastic! Thanks for your help Raphaël.

You're welcome.

I've a question : can you explain me your need about authkey and
privkey ? Did you have an example ?

What are advantages or drawbacks for using theses keys ?


Thanks,

--
Raphaël 'SurcouF' Bordet

0 new messages