Re: PYro4 v4.17 and HMAC_KEY error: hmac key config not symmetric
Aurelio Forese <[email protected]>
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <CAAt0uyKE0yzMsK4aWCovu86u=o4sMOjZ706BPE5KcumMK_HSKQ@mail.gmail.com> |
Hi Irmen, the code is failing when starting the server. The nameserver and server are hosted on the same machine and I suspected nameserver needed the HMAC_KEY but I could not find a way to set it: could you help me with setting that key? Once done, I'll give you a feedback on this. Thanks in advance, Aurelio 2013/2/22 Irmen de Jong <[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 > _______________________________________________ > Pyro-core mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pyro-core ------------------------------------------------------------------------------ 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