Re: PYro4 v4.17 and HMAC_KEY error: hmac key config not symmetric

Irmen de Jong <[email protected]>
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
On 21-2-2013 9:57, Aurelio Forese wrote:
> I'm using Pyro4 v4.17 and I've some problems setting HMAC_KEY for
> authentication.
> To be more specific, whatever Pyro4.config.HMAC_KEY I set, running the
> server code, I always receive the error:
> "Pyro4.errors.comunicationError: cannot connect: hmac key config not
> symmetric".
> Note that my server Pyro4 code works normally if I comment the
> HMAC_KEY setting and I can connect through a client. Nameserver
> service is correctly running.
> I tried to set Pyro4.config.HMAC_KEY both with a string or HMAC object
> but same result.


Please provide the full traceback. (where exactly is your server code failing?) Is it
failing directly when starting the server, or when a client tries to connect?

Also, how do you start the name service?  If you configure a HMAC_KEY for your pyro
server, you'll also need to configure the same key for the name service. It should not
show the warning "UserWarning: HMAC_KEY not set, protocol data may not be secure".

Are you using the same Python version 'on both sides'?

By the way, HMAC_KEY should be a regular string (or bytes type for Python3), not a HMAC
object.


Cheers

Irmen de Jong


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.