Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add name property into the signature verification result #33

Open
microshine opened this issue Jan 24, 2023 · 0 comments
Open

Add name property into the signature verification result #33

microshine opened this issue Jan 24, 2023 · 0 comments

Comments

@microshine
Copy link
Contributor

Current implementation has name property in the verification result, but it keeps information from the T (Title) filed of the Signature Field.

The Signature Dictionary has optional field Name.

image

I think we need to rename the current filed name into the title and add filed name.

name:
  if (cms.signer.certificate)
    certName = certificate.cn || certificate.emailAddress || certificate.subjectAltName.cn || certificate.subjectAltName.emailAddress
  if certName
    name = certName
  else
    name = sigDict.Name || ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant