Skip to content

x509-cert: fixup RDN string representation - #1126

Merged
baloo merged 2 commits into
RustCrypto:masterfrom
baloo:baloo/x509-cert/name-string-ordering
Jun 27, 2023
Merged

x509-cert: fixup RDN string representation#1126
baloo merged 2 commits into
RustCrypto:masterfrom
baloo:baloo/x509-cert/name-string-ordering

Conversation

@baloo

Copy link
Copy Markdown
Member

Fixes#1121

@baloobaloo changed the title x509-cert: fixup string representationx509-cert: fixup RDN string representationJun 27, 2023
@baloo
balooforce-pushed the baloo/x509-cert/name-string-ordering branch from 31cd225 to 1fd2852CompareJune 27, 2023 22:10

@tarcieritarcieri left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, integration test failure:

---- rdns_serde stdout ----
output: CN=foo,SN=bar,C=baz+L=bat
thread 'rdns_serde' panicked at 'assertion failed: `(left == right)`
left: `"CN=foo,SN=bar,C=baz+L=bat"`,
right: `"C=baz+L=bat,SN=bar,CN=foo"`', tests/name.rs:346:9

@baloo

Copy link
Copy Markdown
MemberAuthor

yeah, this needs the same fix on the parsing side.

@baloo
baloo merged commit f36bcbb into RustCrypto:masterJun 27, 2023
@baloo
baloo deleted the baloo/x509-cert/name-string-ordering branch June 27, 2023 23:12
baloo added a commit to baloo/formats that referenced this pull request Jul 25, 2023
Added
- `add_attribute` to `RequestBuilder` ([RustCrypto#1137])
Changed
- bump `serde_json` from 1.0.97 to 1.0.99 ([RustCrypto#1122])
- use the shortest name when looking attr OID ([RustCrypto#1130])
- bump `serde_json` from 1.0.100 to 1.0.103 ([RustCrypto#1158])
Fixed
- RDN string representation ([RustCrypto#1126])
- `Arbitrary` for certificates ([RustCrypto#1150])
[RustCrypto#1122]: RustCrypto#1122
[RustCrypto#1126]: RustCrypto#1126
[RustCrypto#1130]: RustCrypto#1130
[RustCrypto#1137]: RustCrypto#1137
[RustCrypto#1150]: RustCrypto#1150
[RustCrypto#1158]: RustCrypto#1158
@baloobaloo mentioned this pull request Jul 25, 2023
baloo added a commit that referenced this pull request Jul 25, 2023
Added
- `add_attribute` to `RequestBuilder` ([#1137])
Changed
- bump `serde_json` from 1.0.97 to 1.0.99 ([#1122])
- use the shortest name when looking attr OID ([#1130])
- bump `serde_json` from 1.0.100 to 1.0.103 ([#1158])
Fixed
- RDN string representation ([#1126])
- `Arbitrary` for certificates ([#1150])
[#1122]: #1122
[#1126]: #1126
[#1130]: #1130
[#1137]: #1137
[#1150]: #1150
[#1158]: #1158
scv35 pushed a commit to scv35/format-encoders-decoders that referenced this pull request Jul 4, 2025
Added
- `add_attribute` to `RequestBuilder` ([#1137])
Changed
- bump `serde_json` from 1.0.97 to 1.0.99 ([#1122])
- use the shortest name when looking attr OID ([#1130])
- bump `serde_json` from 1.0.100 to 1.0.103 ([#1158])
Fixed
- RDN string representation ([#1126])
- `Arbitrary` for certificates ([#1150])
[#1122]: RustCrypto/formats#1122
[#1126]: RustCrypto/formats#1126
[#1130]: RustCrypto/formats#1130
[#1137]: RustCrypto/formats#1137
[#1150]: RustCrypto/formats#1150
[#1158]: RustCrypto/formats#1158
ghost-knightx56yui added a commit to ghost-knightx56yui/formats that referenced this pull request Nov 13, 2025
Added
- `add_attribute` to `RequestBuilder` ([#1137])
Changed
- bump `serde_json` from 1.0.97 to 1.0.99 ([#1122])
- use the shortest name when looking attr OID ([#1130])
- bump `serde_json` from 1.0.100 to 1.0.103 ([#1158])
Fixed
- RDN string representation ([#1126])
- `Arbitrary` for certificates ([#1150])
[#1122]: RustCrypto/formats#1122
[#1126]: RustCrypto/formats#1126
[#1130]: RustCrypto/formats#1130
[#1137]: RustCrypto/formats#1137
[#1150]: RustCrypto/formats#1150
[#1158]: RustCrypto/formats#1158
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

x509-cert: RdnSequence.to_string() not producing RFC4514 compliant string representations

2 participants

@baloo@tarcieri