code: def get_revocation_reason(self):
          
          if self.revoked is False:
              return
  
          if self.revoked_reason == '' or self.revoked_reason is None:
              return x509.ReasonFlags.unspecified
          else:
              return getattr(x509.ReasonFlags, self.revoked_reason)
docs: Get the revocation reason of this certificate.