"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "build/azure-pipelines/win32/import-esrp-auth-cert.ps1" between
vscode-1.50.0.tar.gz and vscode-1.50.1.tar.gz

About: Visual Studio Code is a source code editor (available for Windows, macOS and Linux). It comes with built-in support for JavaScript, TypeScript and Node.js and has extensions for other languages (such as C++, C#, Java, Python, PHP, Go). Source code.

import-esrp-auth-cert.ps1  (vscode-1.50.0):import-esrp-auth-cert.ps1  (vscode-1.50.1)
Param( param ($CertBase64)
[string]$AuthCertificateBase64, $ErrorActionPreference = "Stop"
[string]$AuthCertificateKey
)
# Import auth certificate $CertBytes = [System.Convert]::FromBase64String($CertBase64)
$AuthCertificateFileName = [System.IO.Path]::GetTempFileName() $CertCollection = New-Object System.Security.Cryptography.X509Certificates.X509C
$AuthCertificateBytes = [Convert]::FromBase64String($AuthCertificateBase64) ertificate2Collection
[IO.File]::WriteAllBytes($AuthCertificateFileName, $AuthCertificateBytes) $CertCollection.Import($CertBytes, $null, [System.Security.Cryptography.X509Cert
$AuthCertificate = Import-PfxCertificate -FilePath $AuthCertificateFileName -Cer ificates.X509KeyStorageFlags]::Exportable)
tStoreLocation Cert:\LocalMachine\My -Password (ConvertTo-SecureString $AuthCert
ificateKey -AsPlainText -Force)
rm $AuthCertificateFileName
$ESRPAuthCertificateSubjectName = $AuthCertificate.Subject
$CertStore = New-Object System.Security.Cryptography.X509Certificates.X509Store(
"My","LocalMachine")
$CertStore.Open("ReadWrite")
$CertStore.AddRange($CertCollection)
$CertStore.Close()
$ESRPAuthCertificateSubjectName = $CertCollection[0].Subject
Write-Output ("##vso[task.setvariable variable=ESRPAuthCertificateSubjectName;]$ ESRPAuthCertificateSubjectName") Write-Output ("##vso[task.setvariable variable=ESRPAuthCertificateSubjectName;]$ ESRPAuthCertificateSubjectName")
 End of changes. 3 change blocks. 
13 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)