[zeromq-dev] certificates being ignored?

Turkey Breast turkeybreast at yahoo.com
Thu Mar 6 15:11:34 CET 2014

As per this issue:


I'm using the ironhouse2 example. If I comment out the line where it 
saves the client's public key for the server, the example still works. I expect the server should refuse the connection since the key isn't 
installed. This is with 2.0.3. Same thing with changing the IP address in zauth_allow().

I tried running the (unmodified) example with latest libzmq and czmq git but it was giving this error:

/tmp/czmq/examples/security> ./ironhouse
ironhouse: zsockopt.c:397: zsocket_set_curve_secretkey_bin: Assertion `rc == 0 || zmq_errno () == (156384712 + 53)' failed.
Aborted (core dumped)
/tmp/czmq/examples/security> gdb ironhouse core 
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
Reading symbols from /tmp/czmq/examples/security/ironhouse...(no debugging symbols found)...done.
[New LWP 13504]
[New LWP 13505]
[New LWP 13503]
[New LWP 13507]
[New LWP 13508]
[New LWP 13502]
[New LWP 13506]
warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./ironhouse'.
Program terminated with signal 6, Aborted.
#0  0x00007fa9cfe92475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007fa9cfe92475 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007fa9cfe956f0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007fa9cfe8b621 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007fa9d06ca49b in zsocket_set_curve_secretkey_bin (zocket=zocket at entry=0x7fa9c8003f90, 
curve_secretkey=curve_secretkey at entry=0x7fa9c8000990 
 at zsockopt.c:397
#4 0x00007fa9d06b8355 in zcert_apply (self=0x7fa9c8000970, zocket=0x7fa9c8003f90) at zcert.c:352
#5 0x000000000040115b in client_task ()
#6 0x00007fa9d06ced4f in s_thread_shim (args=0x1520a70) at zthread.c:95
#7 0x00007fa9cfc46b50 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8 0x00007fa9cff3aa7d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9 0x0000000000000000 in ?? ()

More information about the zeromq-dev mailing list