Skip to content

[#1124] Add preliminary DICE certificate support#1125

Open
iadgovuser59 wants to merge 2 commits intomainfrom
v3.1_issue_1124-add-dice-cert-support
Open

[#1124] Add preliminary DICE certificate support#1125
iadgovuser59 wants to merge 2 commits intomainfrom
v3.1_issue_1124-add-dice-cert-support

Conversation

@iadgovuser59
Copy link
Collaborator

@iadgovuser59 iadgovuser59 commented Mar 4, 2026

This PR adds preliminary support for DICE certificate parsing, which is available through the IDevID certificate page. The additional fields will be displayed via the Certificate Details page, which includes a "DICE Info" section if said fields are present.

To test: upload a DICE-supported certificate via the IDevID Certificates page, and note present fields (as seen in the screenshot below).

dicecertinfo

Closes #1124.

@iadgovuser59 iadgovuser59 added the new feature Adding a new feature label Mar 4, 2026
@iadgovuser59 iadgovuser59 changed the title Add preliminary DICE certificate support [#1124] Add preliminary DICE certificate support Mar 4, 2026
Copy link
Collaborator

@ThatSilentCoder ThatSilentCoder left a comment

Choose a reason for hiding this comment

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

I uploaded the test certificates and everything worked well!

I did have some comments about the structure of the classes/enums that were used to represent these new certificate attributes. And I made a comment about whether or not the table that represents the DICE INFO should be available to be seen at all times or it should be hidden until the user clicks on the DICE INFO header?

* @return the corresponding DiceKeyPurpose, or OTHER if not recognized
*/
private static DiceKeyPurpose toDiceKeyPurpose(final String oid) {
if (OID_TCG_DICE_KP_IDENTITY_INIT.equals(oid)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could probably replace this with a switch.

<a role="button" data-bs-toggle="collapse" class="collapsed"
href="#diceInfoInner" aria-expanded="true" data-bs-placement="top"
aria-controls="diceInfoInner">
DICE Info ▼
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seeing as the DICE Info table is pretty small, do you think this should be a collapsible row or a table that can be displayed at all times?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature Adding a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add preliminary DICE certificate support

2 participants