Skip to content

Commit caa73fc

Browse files
author
Lee Fine
committed
ab82394
1 parent d76e0fb commit caa73fc

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

RemoteFile/ImplementedStoreTypes/PEM/PEMCertificateStoreSerializer.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ public Pkcs12Store DeserializeRemoteCertificateStore(byte[] storeContentBytes, s
6969
string storeContents = Encoding.ASCII.GetString(storeContentBytes);
7070
X509CertificateEntry[] certificates = GetCertificates(storeContents);
7171

72+
if (!isInventory && IgnorePrivateKeyOnInventory)
73+
throw new RemoteFileException("RFPEM stores with Ignore Private Key On Inventory set to True do not support Management or ODKG jobs. Only Inventory may be run.");
74+
7275
if (IsTrustStore || (isInventory && IgnorePrivateKeyOnInventory))
7376
{
7477
foreach (X509CertificateEntry certificate in certificates)

RemoteFile/RemoteFile.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
66
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
77
<ImplicitUsings>disable</ImplicitUsings>
88
</PropertyGroup>

0 commit comments

Comments
 (0)