We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7641a8 commit 73f3f07Copy full SHA for 73f3f07
Functions/New-SidExtension.ps1
@@ -16,19 +16,17 @@ Function New-SidExtension {
16
17
$Output = ''
18
19
- # Object Identifier 1.3.6.1.4.1.311.25.2.1
20
- $Output += "060A2B060104018237190201"
21
-
22
# OCTET_STRING
23
- $Entry = Convert-StringToDER `
+ $Output = Convert-StringToDER `
24
-IdentifierOctets "04" `
25
-ContentOctets $(Convert-StringtoHex -String $Sid)
26
27
- # Building the Nodes
28
29
- $Output += Convert-StringToDER `
30
-IdentifierOctets "A0" `
31
- -ContentOctets $Entry
+ -ContentOctets $Output
+
+ # Object Identifier 1.3.6.1.4.1.311.25.2.1
+ $Output = "060A2B060104018237190201" + $Output
32
33
$Output = Convert-StringToDER `
34
0 commit comments