oxidecomputer / offline-keystore

yubihsm-setup replacing the yubico cruft with our own cruft!
Mozilla Public License 2.0
10 stars 1 forks source link

Don't reorder DNs from CSRs. #168

Open plotnick opened 1 year ago

plotnick commented 1 year ago

The DN reordering done by OKS is due to the default behavior of openssl ca. This command will reorder the fields from a CSR to match the order that they're defined in the config (specifically the policy section) unless it is told to do otherwise (-preserveDN on the command line, or preserve=yes in the config). I'm not sure how much pain and suffering this is causing on the permslip side and we can be more flexible in oks for sure. That said, the damage may already have been done since we've generated the certs :grimacing:

Originally posted by @flihp in https://github.com/oxidecomputer/permission-slip/issues/81#issuecomment-1568723770