Skip to content

Commit

Permalink
Update EV locality lint
Browse files Browse the repository at this point in the history
Since EV ver 1.6.4 and ballot 191, localityName is optional if stateOrProvinceName is present. 

Closes amazon-archives#65
  • Loading branch information
Santhan Raj authored May 29, 2018
1 parent 064051c commit e691573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/certlint/cablint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ def self.lint(der)
unless subjattrs.include? 'serialNumber'
messages << 'E: EV certificates must include serialNumber in subject'
end
unless subjattrs.include? 'L'
messages << 'E: EV certificates must include localityName in subject'
if !(subjattrs.include? 'L') && !(subjattrs.include? 'ST')
messages << 'E: EV certificates must include either localityName or stateOrProvinceName'
end
unless subjattrs.include? 'C'
messages << 'E: EV certificates must include countryName in subject'
Expand Down

0 comments on commit e691573

Please sign in to comment.