contentauth / c2pa-python

Python binding for c2pa-rs library
Apache License 2.0
23 stars 7 forks source link

Can't use certificates with pass phrases #14

Closed johnpletka closed 1 month ago

johnpletka commented 4 months ago

I don't see any way to include a password for signing certificates. For example:

 sign_info = c2pa.SignerInfo("es256",
                                        cert_file.read(),
                                        key_file.read(),
                                        "http://timestamp.digicert.com")

I get prompted at the CMD line for "Enter PEM pass phrase:", but this needs to run headless without user interaction. Is there a way to supply the pass phrase to the SignerInfo? Or any other work around?

gpeacock commented 1 month ago

You have to extract the keys on your own before handing them to us.