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

xmerl_dsig fails due to mismatched SubjectPublicKeyInfo record format #19

Closed
chefsalim opened this issue May 9, 2016 · 2 comments
Closed

Comments

@chefsalim
Copy link

chefsalim commented May 9, 2016

Using Erlang 18.

xmerl_dsig line 204 is:

       {_, KeyBin} = Cert#'Certificate'.tbsCertificate#'TBSCertificate'.subjectPublicKeyInfo#'SubjectPublicKeyInfo'.subjectPublicKey,

This does not match the record definition for SubjectPublicKeyInfo from the erlang docs site:

#'SubjectPublicKeyInfo'{
      algorithm,       % #AlgorithmIdentifier{} 
      subjectPublicKey % binary() 
     }.

so it’s expecting a {any(), binary()} and getting a binary()

@arekinath
Copy link
Owner

This should have been fixed by 446dc02 on the develop branch. It hasn't been merged to master yet -- I'd like to wait for #19 and #15 if possible before releasing.

@chefsalim
Copy link
Author

Cool, thanks

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

2 participants