Functions/New-SignedCertificateRequest.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<#
    .SYNOPSIS
    Appends a Signature to a PKCS#10 Certificate Request by putting it into a signed PKCS#7 Message
 
    .PARAMETER CertificateRequest
    Takes a BASE64 encoded PKCS#10 Certificate Request
 
    .PARAMETER SigningCert
    Takes a Signing Certificate in form of an X509Certificate2 Object
 
    .PARAMETER RequesterName
    Optional Parameter to include a Requester Name in Form of DOMAIN\Username here
    This effectively makes it an Enroll on Behalf of (EOBO) Request
 
    .PARAMETER SignatureHashAlgorithm
    Specifies the Hash Algorithm that is being used to sign the Certificate Request or the Certificate.
    Defaults to SHA-256.
 
    .OUTPUTS
    BASE64-encoded PKCS#7 Certificate Request containing the signed PKCS#10 Certificate request
#>

function New-SignedCertificateRequest {

    [CmdletBinding()]
    param (

        [Parameter(
            Mandatory=$True,
            ValuefromPipeline=$True
            )]
        [ValidateNotNullOrEmpty()]
        [String]
        $CertificateRequest,

        [Parameter(Mandatory=$True)]
        [ValidateScript({($_.HasPrivateKey) -and ($null -ne $_.PSParentPath)})]
        [System.Security.Cryptography.X509Certificates.X509Certificate2]
        $SigningCert,

        [Alias("Hash")]
        [Parameter(Mandatory=$False)]
        [ValidateSet("SHA1","SHA256","SHA384","SHA512")]
        [String]
        $SignatureHashAlgorithm = "SHA256",

        [Parameter(Mandatory=$False)]
        [ValidatePattern("^.*(\\|/)")]
        [String]
        $RequesterName

    )

    begin {
        # Signing a Certificate Request means wrapping the PKCS10 request inside a PKCS7 request
        # https://docs.microsoft.com/en-us/windows/desktop/seccertenroll/certificate-request-functions
        $CertRequestPkcs10 = New-Object -ComObject 'X509Enrollment.CX509CertificateRequestPkcs10'
        $CertRequestPkcs7 = New-Object -ComObject 'X509Enrollment.CX509CertificateRequestPkcs7'
    }

    process {

        # First we must load the given Certificate Request
        # https://docs.microsoft.com/en-us/windows/win32/api/certenroll/nf-certenroll-ix509certificaterequestpkcs10-initializedecode
        Try {
            $CertRequestPkcs10.InitializeDecode(
                $CertificateRequest,
                $EncodingType.XCN_CRYPT_STRING_BASE64_ANY
                )
        }
        Catch {
            Write-Error -Message $PSItem.Exception.Message
            return
        }
    
        # Build the PKCS#7 Message based on the PKCS#10 Certificate Request
        # https://stackoverflow.com/questions/7824408/programmatically-communicating-with-a-certificate-authority
        $CertRequestPkcs7.InitializeFromInnerRequest($CertRequestPkcs10)

        # Create a Signer Certificate Structure
        # https://msdn.microsoft.com/en-us/library/windows/desktop/aa376832(v=vs.85).aspx
        $SignerCertificate =  New-Object -ComObject 'X509Enrollment.CSignerCertificate'
        $SignerCertificate.Initialize(
            [int]($SigningCert.PSParentPath -match "Machine"),
            $X509PrivateKeyVerify.VerifyNone, # We did this already during Parameter Validation
            $EncodingType.XCN_CRYPT_STRING_BASE64,
            [Convert]::ToBase64String($SigningCert.RawData)
        )
        $CertRequestPkcs7.SignerCertificate = $SignerCertificate

        # Append the Requester Name in Form of DOMAIN\Username here
        If ($RequesterName) {
            $CertRequestPkcs7.RequesterName = $RequesterName
        }

        # Specifying the Hashing Algorithm to use for the CMS message
        # https://docs.microsoft.com/en-us/windows/win32/api/certenroll/nn-certenroll-iobjectid
        $HashAlgorithmObject = New-Object -ComObject X509Enrollment.CObjectId
        $HashAlgorithmObject.InitializeFromAlgorithmName(
            $ObjectIdGroupId.XCN_CRYPT_HASH_ALG_OID_GROUP_ID,
            $ObjectIdPublicKeyFlags.XCN_CRYPT_OID_INFO_PUBKEY_ANY,
            $AlgorithmFlags.AlgorithmFlagNone,
            $SignatureHashAlgorithm
        )
        $CertRequestPkcs7.HashAlgorithm = $HashAlgorithmObject
        
        # The request is encoded by using Distinguished Encoding Rules (DER) as defined by the Abstract Syntax Notation One (ASN.1) standard.
        # The encoding process creates a byte array. You can retrieve the byte array by calling the RawData property.
        # https://docs.microsoft.com/en-us/windows/win32/api/certenroll/nf-certenroll-ix509certificaterequest-encode
        $CertRequestPkcs7.Encode()

        # Return the signed Certificate Signing Request
        # https://docs.microsoft.com/en-us/windows/win32/api/certenroll/nf-certenroll-ix509certificaterequest-get_rawdata
        "-----BEGIN PKCS #7 SIGNED DATA-----`n" + 
        $CertRequestPkcs7.RawData($RequestFlags.CR_OUT_BASE64) + 
        "-----END PKCS #7 SIGNED DATA-----"

    }

    end {
        [void]([System.Runtime.Interopservices.Marshal]::ReleaseComObject($CertRequestPkcs10))
        [void]([System.Runtime.Interopservices.Marshal]::ReleaseComObject($CertRequestPkcs7))
        [void]([System.Runtime.Interopservices.Marshal]::ReleaseComObject($HashAlgorithmObject))
    }

}
# SIG # Begin signature block
# MIIk+wYJKoZIhvcNAQcCoIIk7DCCJOgCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQ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