Skip to content

Commit

Permalink
Ensure appverifier shows common name (#370)
Browse files Browse the repository at this point in the history
Replaced search for "O=" with "CN=" since the intended behavior is to
show the common name of the issuer as opposed to the organization name.

Tested manually.
  • Loading branch information
suzannajiwani authored Sep 13, 2023
1 parent 0289a71 commit 3c824b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class ShowDocumentFragment : Fragment() {
val commonName = StringBuffer()
for (issuerItem in issuerItems) {
when {
issuerItem.contains("O=") -> {
issuerItem.contains("CN=") -> {
val (key, value) = issuerItem.split("=", limit = 2)
commonName.append(value)
cnFound = true
Expand Down

0 comments on commit 3c824b1

Please sign in to comment.