pki.signalsΒΆ

Django signals for PKI models.

Package ContentsΒΆ

pki.signals.schedule_next_crl_after_generation(sender, instance, *, created, **kwargs)[source]ΒΆ

Schedule the next CRL generation after a CRL is created.

Parameters:
  • sender (type[pki.models.CrlModel]) – The model class.

  • instance (pki.models.CrlModel) – The CrlModel instance.

  • created (bool) – Whether the instance was created.

  • **kwargs (Any) – Additional keyword arguments.

Return type:

None

pki.signals.schedule_crl_on_cycle_enable(sender, instance, *, created, update_fields, **kwargs)[source]ΒΆ

Schedule CRL generation when CRL cycle is enabled on a CA.

Parameters:
  • sender (type[pki.models.CaModel]) – The model class.

  • instance (pki.models.CaModel) – The CaModel instance.

  • created (bool) – Whether the instance was created.

  • update_fields (set[str] | None) – The fields that were updated.

  • **kwargs (Any) – Additional keyword arguments.

Return type:

None

pki.signals.schedule_crl_after_revocation(sender, instance, *, created, **kwargs)[source]ΒΆ

Schedule CRL generation after a certificate is revoked.

Parameters:
  • sender (type[pki.models.RevokedCertificateModel]) – The model class.

  • instance (pki.models.RevokedCertificateModel) – The RevokedCertificateModel instance.

  • created (bool) – Whether the instance was created.

  • **kwargs (Any) – Additional keyword arguments.

Return type:

None