Skip to content

Commit

Permalink
Merge pull request #4606 from LibreSign/backport/4605/stable29
Browse files Browse the repository at this point in the history
[stable29] fix: add maxlength to names of cert
  • Loading branch information
vitormattos authored Feb 4, 2025
2 parents e502a48 + 4794026 commit 874b23d
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 874b23d

Please sign in to comment.