Originally posted by **lombaardcj007** September 27, 2022
Is it possible to call `SimpleSigner.load()` with a bytearray or string that represents the contents of the `key_file` and `cert_file`
I want to keep the keys in a database instead of stored onto disk.
Sample code to sign PDF document: ``
Maintainer comment
Of course that's possible, but the current API doesn't really expose that functionality in a convenient way, since the caller has to know a great deal more about how their keys/certs/... are encoded than they would if they were loading them from files.
It would be better to expose a version of all the load_XYZ_from_pemder(...) functions that works with binary IO handles instead of file names. Since that's a fairly trivial enhancement, it shouldn't be hard to get it into the next release.
From discussion #158 started by @lombaardcj007.
Original post
Maintainer comment
Of course that's possible, but the current API doesn't really expose that functionality in a convenient way, since the caller has to know a great deal more about how their keys/certs/... are encoded than they would if they were loading them from files. It would be better to expose a version of all the
load_XYZ_from_pemder(...)
functions that works with binary IO handles instead of file names. Since that's a fairly trivial enhancement, it shouldn't be hard to get it into the next release.