Skip to content

Commit 5054cc9

Browse files
Import CA certificate using certutil
It seems saner than certmgr, at least in 8.1. Note that this requires administrative privileges to run, but so does certmgr.
1 parent 71c3e9a commit 5054cc9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

projects/client/Unit/RabbitMQ.Client.Unit.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<!-- Warning! This file contains important customizations. Using Visual Studio to edit project's properties might break things. -->
44
<!-- Props file -->
@@ -45,7 +45,8 @@
4545
</PropertyGroup>
4646
<Target Name="ImportSSL" Condition="$(SSLAvail)">
4747
<!-- import cacert into certmgr -->
48-
<Exec Command="CertMgr /add $(SSLCertsDir)/testca/cacert.cer /s root" />
48+
<!-- <Exec Command="certmgr -c -add -s $(SSLCertsDir)\testca\cacert.cer -r localMachine Root" /> -->
49+
<Exec Command="certutil -addstore Root $(SSLCertsDir)\testca\cacert.cer" />
4950
</Target>
5051
<!-- Decide whether we need to set TEMP under mono -->
5152
<PropertyGroup>
@@ -144,4 +145,4 @@
144145
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
145146
<!-- Custom BeforeClean -->
146147
<Target Name="BeforeClean" DependsOnTargets="CleanTestResults" />
147-
</Project>
148+
</Project>

0 commit comments

Comments
 (0)