Skip to content

challgenge password attribute broken. #44

@groob

Description

@groob

Three tasks:

  1. Switch the asn1 format to a SET.
    openssl:
  346:d=4  hl=2 l=   9 prim: OBJECT            :challengePassword
  357:d=4  hl=2 l=   8 cons: SET
  359:d=5  hl=2 l=   6 prim: PRINTABLESTRING   :foobar
  367:d=1  hl=2 l=  13 cons: SEQUENCE
  369:d=2  hl=2 l=   9 prim: OBJECT            :sha1WithRSAEncryption

micromdm/scep:

  249:d=4  hl=2 l=   9 prim: OBJECT            :challengePassword
  260:d=4  hl=2 l=   6 prim: OCTET STRING      :foobar
  268:d=1  hl=2 l=  13 cons: SEQUENCE
  270:d=2  hl=2 l=   9 prim: OBJECT            :sha256WithRSAEncryption

Make sure that parsing a challenge password works after the change.

  1. Re-sign the raw csr after adding challenge password. Right now signatures don't match after adding challenge password.

  2. Refactor the challenge password code into a new package, add attributions to golang/go and link to open issue.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions