Skip to content

FOC-47780: Update TerminalCommonNameValidator to support validation of Castles certificates #573

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

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

timon-langlotz
Copy link
Contributor

@timon-langlotz timon-langlotz commented Jun 16, 2021

Description
TerminalCommonNameValidator does not support certificates from Castles terminals. Updated the logic in the following way:

  • Minimum length of terminal model name has been changed from 4 to 3 characters (to account for S1E)
  • Changed regular expression for serial number to allow a range from 9 to 15 digits (to account for all Castles serial numbers)
  • Added a null check for return value from Matcher.group(int)

Tested scenarios
Added tests for S1E CN.

Fixed issue: Partially FOC-47780

@timon-langlotz timon-langlotz changed the title FOC-47797: Update TerminalCommonNameValidator to support validation of Castles certificates FOC-47780: Update TerminalCommonNameValidator to support validation of Castles certificates Jun 16, 2021
@Aleffio Aleffio merged commit ea446c2 into Adyen:develop Jul 1, 2021
@Aleffio Aleffio mentioned this pull request Jul 1, 2021
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.

3 participants