Unable to sign multifiles

I’m trying to sign a multifile, but it won’t let me.

This is the code I’m using

mf = Multifile()
mf.openReadWrite('test.mf')
    
res = mf.addSignature('mf.crt', '', 'mf.key')
print 'ADD SIGNATURE', res
mf.flush()
mf.close()

res is always False.

Notes: Key and self-signed cert generated with OpenSSL. No chain cert. The private key is NOT password protected.

Any error messages?

No errors at all, even with notify level set to spam there’s no relevant info about the problem :neutral_face:

For some really strange reason, which I don’t understand yet, the multifile wasn’t open. That’s what caused the problems.