Skip to content

Commit

Permalink
fix: add maxlength to names of cert
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Feb 4, 2025
1 parent e502a48 commit 4794026
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/helpers/certification.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ export function selectCustonOption(id) {
return Option.from(options.find(item => item.id === id))
}

/**
* More informations: https://www.ietf.org/rfc/rfc5280.txt
*/
export const options = [
{
id: 'CN',
label: t('libresign', 'Name (CN)'),
max: 64,
value: '',
helperText: t('libresign', 'Name (CN)'),
},
Expand All @@ -30,27 +34,31 @@ export const options = [
id: 'ST',
label: 'State',
min: 1,
max: 128,
value: '',
helperText: t('libresign', 'Full name of states or provinces'),
},
{
id: 'L',
label: 'Locality',
min: 1,
max: 128,
value: '',
helperText: t('libresign', 'Name of a locality or place, such as a city, county, or other geographic region'),
},
{
id: 'O',
label: 'Organization',
min: 1,
max: 64,
value: '',
helperText: t('libresign', 'Name of an organization'),
},
{
id: 'OU',
label: 'OrganizationalUnit',
min: 1,
max: 64,
value: '',
helperText: t('libresign', 'Name of an organizational unit'),
},
Expand Down

0 comments on commit 4794026

Please sign in to comment.