Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Leblow committed Apr 8, 2024
1 parent 7a65cd1 commit 876013d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/identity/src/createUserCert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ async function generateUserCertificate({
let altNames

try {
nickname = attr?.[2].values[0].valueBlock.value
peerId = attr?.[3].values[0].valueBlock.value
onionAddress = attr?.[4].values[0].valueBlock.value
nickname = attr?.[1].values[0].valueBlock.value
peerId = attr?.[2].values[0].valueBlock.value
onionAddress = attr?.[3].values[0].valueBlock.value
altNames = new GeneralNames({
names: [
new GeneralName({
Expand All @@ -87,6 +87,7 @@ async function generateUserCertificate({
],
})
} catch (err) {
console.error(err)
throw new Error('Cannot get certificate request extension')
}

Expand Down

0 comments on commit 876013d

Please sign in to comment.