Skip to content

Fix issue #78: Make AnotherName inner value configurable #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ic0ns
Copy link
Contributor

@ic0ns ic0ns commented Jun 26, 2025

Summary

  • Implemented AnotherNamePreparator to handle creating the value based on the configured value
  • Added X509Utf8String wrapper class to make Asn1Utf8String compatible with X509Component interface
  • AnotherName now supports configuring the inner value via setConfiguredValue()

Details

This PR fixes issue #78 from the X509-Attacker-Development repository. The AnotherName class previously had a TODO comment indicating that the inner value should be preset from the config. This implementation allows users to configure the inner value of AnotherName.

The implementation currently supports UTF8String as the inner value type, which can be extended in the future to support other types based on the OID.

Test plan

  • Added comprehensive unit tests for AnotherNamePreparator
  • Tests cover cases with and without configured values
  • Tests verify encoding functionality
  • All tests pass successfully

Fixes tls-attacker/X509-Attacker-Development#78

- Implemented AnotherNamePreparator to handle creating the value based on the configured value
- Added X509Utf8String wrapper class to make Asn1Utf8String compatible with X509Component interface
- AnotherName now supports configuring the inner value via setConfiguredValue()
- Added comprehensive tests for AnotherNamePreparator
- The inner value is currently implemented as UTF8String and can be extended to support other types based on the OID
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.

1 participant