named-data / python-ndn

An NDN client library with AsyncIO support in Python 3
https://python-ndn.readthedocs.io/en/latest
Apache License 2.0
24 stars 17 forks source link

how to create cert with a bigger validity using pyndnsec #51

Closed killerdbob closed 2 years ago

killerdbob commented 2 years ago

Hi, I would like to ask while I was using pyndnsec New-Item /pcnl/ndn/video/sz02/live, the 'NotAfter' filed seems only have +1 day of validity, and I don't see an option for pyndnsec to prolong it.

zjkmxy commented 2 years ago

Thank you for reporting this. This is a bug and I have fixed it.

killerdbob commented 2 years ago

so, how do I prolong the validity? or should I use python-ndn v3.1?

zjkmxy commented 2 years ago

You need to delete the certificate and create a new one. You can use the latest pyndnsec (not published so you need to install from GitHub) or ndnsec.