Skip to content

Commit 25d1155

Browse files
committed
Added script to convert the PEM that is printed in the pipeline to DER that is required for upload in the NuGet site.
1 parent 3e32199 commit 25d1155

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Magick.NET.sln

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ VisualStudioVersion = 17.0.32014.148
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "publish", "publish", "{660486E5-ECAD-49B3-AEBB-A34953E48A72}"
77
ProjectSection(SolutionItems) = preProject
8-
publish\download.cmd = publish\download.cmd
9-
publish\download.ps1 = publish\download.ps1
8+
publish\convert.pem.cmd = publish\convert.pem.cmd
9+
publish\convert.pem.ps1 = publish\convert.pem.ps1
1010
publish\Magick.NET.AvaloniaMediaImaging.nuspec = publish\Magick.NET.AvaloniaMediaImaging.nuspec
1111
publish\Magick.NET.Core.nuspec = publish\Magick.NET.Core.nuspec
1212
publish\Magick.NET.nuspec = publish\Magick.NET.nuspec
@@ -106,8 +106,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "windows", "windows", "{C72A
106106
build\windows\install.dependencies.ps1 = build\windows\install.dependencies.ps1
107107
build\windows\install.nuget.cmd = build\windows\install.nuget.cmd
108108
build\windows\install.nuget.ps1 = build\windows\install.nuget.ps1
109-
build\windows\test.Magick.NET.cmd = build\windows\test.Magick.NET.cmd
110109
build\windows\print.publickey.py = build\windows\print.publickey.py
110+
build\windows\test.Magick.NET.cmd = build\windows\test.Magick.NET.cmd
111111
build\windows\test.Magick.NET.ps1 = build\windows\test.Magick.NET.ps1
112112
EndProjectSection
113113
EndProject

publish/convert.pem.cmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@echo off
2+
powershell .\convert.pem.ps1
3+
4+
pause

publish/convert.pem.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("../keys/ImageMagick.pem")
2+
3+
[System.IO.File]::WriteAllBytes("../keys/ImageMagick.cer", $cert.Export([System.Security.Cryptography.X509Certificates.X509ContentType]::Cert))

0 commit comments

Comments
 (0)