Skip to content

Add support for serializing BasicConstraints in CSR's#422

Merged
djc merged 3 commits into
rustls:mainfrom
5Dev24:csr-is-ca-ser
Mar 31, 2026
Merged

Add support for serializing BasicConstraints in CSR's#422
djc merged 3 commits into
rustls:mainfrom
5Dev24:csr-is-ca-ser

Conversation

@5Dev24

@5Dev24 5Dev24 commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Add support for BasicConstraints in CSR serializing.

Allows us to now both serialize (this) and deserialize (#420) BasicConstraints in CSR's.

Done so we can cover loading and storing CSR's with a BaiscConstraint attribute.

@5Dev24

5Dev24 commented Mar 26, 2026

Copy link
Copy Markdown
Contributor Author

It just hit me that my serialize_and_deserialize_eq_basic_constraints test requires #420 to handle the deserializing. Forgot that when I push this new branch, the main branch of rcgen here won't have that merged in yet.

Would it be preferred to refactor the test or remove now & add back later when the test is possible?

@djc

djc commented Mar 27, 2026

Copy link
Copy Markdown
Member

Would it be preferred to refactor the test or remove now & add back later when the test is possible?

Just rebase. 👍

@djc djc 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.

Nice, thanks!

(CI is pointing out a clippy issue.)

Comment thread rcgen/src/certificate.rs Outdated
Comment thread rcgen/src/csr.rs Outdated
@djc

djc commented Mar 30, 2026

Copy link
Copy Markdown
Member

Can you squash the feedback-based commits back into your original changes?

@5Dev24

5Dev24 commented Mar 30, 2026

Copy link
Copy Markdown
Contributor Author

Yep, commits squashed

@djc djc added this pull request to the merge queue Mar 31, 2026
@djc

djc commented Mar 31, 2026

Copy link
Copy Markdown
Member

Thanks!

Merged via the queue into rustls:main with commit 0ec4d09 Mar 31, 2026
17 checks passed
@djc djc mentioned this pull request May 10, 2026
eleboucher pushed a commit to eleboucher/towonel that referenced this pull request May 11, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [rcgen](https://github.com/rustls/rcgen) | workspace.dependencies | patch | `0.14.7` → `0.14.8` |

---

### Release Notes

<details>
<summary>rustls/rcgen (rcgen)</summary>

### [`v0.14.8`](https://github.com/rustls/rcgen/releases/tag/v0.14.8): 0.14.8

[Compare Source](rustls/rcgen@v0.14.7...v0.14.8)

#### What's Changed

- Fix incorrect identifier for ML-DSA signature algorithms by [@&#8203;DarkmatterVale](https://github.com/DarkmatterVale) in [#&#8203;412](rustls/rcgen#412)
- Upgrade yasna to 0.6 by [@&#8203;djc](https://github.com/djc) in [#&#8203;419](rustls/rcgen#419)
- Add support for is\_ca in CSR Params by [@&#8203;5Dev24](https://github.com/5Dev24) in [#&#8203;420](rustls/rcgen#420)
- Add support for serializing BasicConstraints in CSR's by [@&#8203;5Dev24](https://github.com/5Dev24) in [#&#8203;422](rustls/rcgen#422)
- update key\_pair to signing\_key in README.md by [@&#8203;fakelozic](https://github.com/fakelozic) in [#&#8203;427](rustls/rcgen#427)
- Fix encoding of directoryName constraints by [@&#8203;sfackler](https://github.com/sfackler) in [#&#8203;429](rustls/rcgen#429)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMDEuMSIsInVwZGF0ZWRJblZlciI6IjQzLjEwMS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL3BhdGNoIl19-->

Reviewed-on: https://git.erwanleboucher.dev/eleboucher/towonel/pulls/37
eleboucher pushed a commit to eleboucher/towonel that referenced this pull request May 20, 2026
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [rcgen](https://github.com/rustls/rcgen) | workspace.dependencies | patch | `0.14.7` → `0.14.8` |

---

### Release Notes

<details>
<summary>rustls/rcgen (rcgen)</summary>

### [`v0.14.8`](https://github.com/rustls/rcgen/releases/tag/v0.14.8): 0.14.8

[Compare Source](rustls/rcgen@v0.14.7...v0.14.8)

#### What's Changed

- Fix incorrect identifier for ML-DSA signature algorithms by [@&#8203;DarkmatterVale](https://github.com/DarkmatterVale) in [#&#8203;412](rustls/rcgen#412)
- Upgrade yasna to 0.6 by [@&#8203;djc](https://github.com/djc) in [#&#8203;419](rustls/rcgen#419)
- Add support for is\_ca in CSR Params by [@&#8203;5Dev24](https://github.com/5Dev24) in [#&#8203;420](rustls/rcgen#420)
- Add support for serializing BasicConstraints in CSR's by [@&#8203;5Dev24](https://github.com/5Dev24) in [#&#8203;422](rustls/rcgen#422)
- update key\_pair to signing\_key in README.md by [@&#8203;fakelozic](https://github.com/fakelozic) in [#&#8203;427](rustls/rcgen#427)
- Fix encoding of directoryName constraints by [@&#8203;sfackler](https://github.com/sfackler) in [#&#8203;429](rustls/rcgen#429)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMDEuMSIsInVwZGF0ZWRJblZlciI6IjQzLjEwMS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL3BhdGNoIl19-->

Reviewed-on: https://git.erwanleboucher.dev/eleboucher/towonel/pulls/37
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

Successfully merging this pull request may close these issues.

2 participants