Skip to content

Commit 52a226d

Browse files
authored
Release 2.1
1 parent 32e3b8f commit 52a226d

40 files changed

+894
-144
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
v2.1
2+
- New RFDER certificate store type added
3+
- RFPEM modified to now support PKCS#1 private key formats (BEGIN RSA PRIVATE KEY)
4+
- Added support for rsa-sha2-256 HostKeyAlgorithm for SSH "handshake" when connecting to Linux managed servers
5+
- Added new optional certificate store type custom field to specify separate file owner when creating certificate stores during Management-Create jobs
6+
- Bug fix: Java-based applications were not recognizing trust entries added to java keystores of type PKCS12
7+
- Bug fix: File download operations for Windows managed servers were still using the credentials from the orchestrator service instead of from the certificate store
8+
19
v2.0
210
- Added PAM support
311

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
###CURL script to create DER certificate store type
2+
3+
###Replacement Variables - Manually replace these before running###
4+
# {URL} - Base URL for your Keyfactor deployment
5+
# {UserName} - User name with access to run Keyfactor APIs
6+
# {UserPassword} - Password for the UserName above
7+
8+
curl -X POST {URL}/keyfactorapi/certificatestoretypes -H "Content-Type: application/json" -H "x-keyfactor-requested-with: APIClient" -u {UserName}:{UserPassword} -d '{
9+
"Name": "RFDER",
10+
"ShortName": "RFDER",
11+
"Capability": "RFDER",
12+
"ServerRequired": true,
13+
"BlueprintAllowed": false,
14+
"CustomAliasAllowed": "Forbidden",
15+
"PowerShell": false,
16+
"PrivateKeyAllowed": "Optional",
17+
"SupportedOperations": {
18+
"Add": true,
19+
"Create": true,
20+
"Discovery": true,
21+
"Enrollment": false,
22+
"Remove": true
23+
},
24+
"PasswordOptions": {
25+
"Style": "Default",
26+
"EntrySupported": false,
27+
"StoreRequired": true
28+
},
29+
"Properties": [
30+
{
31+
"Name": "LinuxFilePermissionsOnStoreCreation",
32+
"DisplayName": "Linux File Permissions on Store Creation",
33+
"Required": false,
34+
"DependsOn": "",
35+
"Type": "String",
36+
"DefaultValue": ""
37+
},
38+
{
39+
"Name": "LinuxFileOwnerOnStoreCreation",
40+
"DisplayName": "Linux File Owner on Store Creation",
41+
"Required": false,
42+
"DependsOn": "",
43+
"Type": "String",
44+
"DefaultValue": ""
45+
},
46+
{
47+
"Name": "SeparatePrivateKeyFilePath",
48+
"DisplayName": "Separate Private Key File Location",
49+
"Required": false,
50+
"DependsOn": "",
51+
"Type": "String",
52+
"DefaultValue": ""
53+
}
54+
],
55+
"EntryParameters": []
56+
}'

Certificate Store Type CURL Scripts/JKS.curl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ curl -X POST {URL}/keyfactorapi/certificatestoretypes -H "Content-Type: applicat
3434
"DependsOn": "",
3535
"Type": "String",
3636
"DefaultValue": ""
37-
}
37+
},
38+
{
39+
"Name": "LinuxFileOwnerOnStoreCreation",
40+
"DisplayName": "Linux File Owner on Store Creation",
41+
"Required": false,
42+
"DependsOn": "",
43+
"Type": "String",
44+
"DefaultValue": ""
45+
}
3846
],
3947
"EntryParameters": []
4048
}'

Certificate Store Type CURL Scripts/KDB.curl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ curl -X POST {URL}/keyfactorapi/certificatestoretypes -H "Content-Type: applicat
3434
"DependsOn": "",
3535
"Type": "String",
3636
"DefaultValue": ""
37-
}
37+
},
38+
{
39+
"Name": "LinuxFileOwnerOnStoreCreation",
40+
"DisplayName": "Linux File Owner on Store Creation",
41+
"Required": false,
42+
"DependsOn": "",
43+
"Type": "String",
44+
"DefaultValue": ""
45+
}
3846
],
3947
"EntryParameters": []
4048
}'

Certificate Store Type CURL Scripts/PEM.curl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ curl -X POST {URL}/keyfactorapi/certificatestoretypes -H "Content-Type: applicat
3535
"Type": "String",
3636
"DefaultValue": ""
3737
},
38+
{
39+
"Name": "LinuxFileOwnerOnStoreCreation",
40+
"DisplayName": "Linux File Owner on Store Creation",
41+
"Required": false,
42+
"DependsOn": "",
43+
"Type": "String",
44+
"DefaultValue": ""
45+
},
3846
{
3947
"Name": "IsTrustStore",
4048
"DisplayName": "Trust Store",
@@ -58,6 +66,14 @@ curl -X POST {URL}/keyfactorapi/certificatestoretypes -H "Content-Type: applicat
5866
"DependsOn": "",
5967
"Type": "String",
6068
"DefaultValue": ""
69+
},
70+
{
71+
"Name": "IsRSAPrivateKey"
72+
"DisplayName": "Is RSA Private Key",
73+
"Required": false,
74+
"DependsOn": "",
75+
"Type": "Bool",
76+
"DefaultValue": false
6177
}
6278
],
6379
"EntryParameters": []

Certificate Store Type CURL Scripts/PKCS12.curl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ curl -X POST {URL}/keyfactorapi/certificatestoretypes -H "Content-Type: applicat
3434
"DependsOn": "",
3535
"Type": "String",
3636
"DefaultValue": ""
37-
}
37+
},
38+
{
39+
"Name": "LinuxFileOwnerOnStoreCreation",
40+
"DisplayName": "Linux File Owner on Store Creation",
41+
"Required": false,
42+
"DependsOn": "",
43+
"Type": "String",
44+
"DefaultValue": ""
45+
}
3846
],
3947
"EntryParameters": []
4048
}'

README.md

Lines changed: 44 additions & 13 deletions
Large diffs are not rendered by default.

RemoteFile/ApplicationSettings.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
using System;
1+
// Copyright 2021 Keyfactor
2+
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
4+
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
5+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
6+
// and limitations under the License.
7+
8+
using System;
29
using System.Collections.Generic;
310
using System.IO;
411

@@ -19,6 +26,7 @@ public enum FileTransferProtocolEnum
1926
}
2027

2128
private const string DEFAULT_LINUX_PERMISSION_SETTING = "600";
29+
private const string DEFAULT_OWNER_SETTING = "";
2230

2331
private static Dictionary<string,string> configuration;
2432

@@ -27,6 +35,7 @@ public enum FileTransferProtocolEnum
2735
public static bool UseNegotiate { get { return configuration.ContainsKey("UseNegotiate") ? configuration["UseNegotiate"]?.ToUpper() == "Y" : false; } }
2836
public static string SeparateUploadFilePath { get { return configuration.ContainsKey("SeparateUploadFilePath") ? AddTrailingSlash(configuration["SeparateUploadFilePath"]) : string.Empty; } }
2937
public static string DefaultLinuxPermissionsOnStoreCreation { get { return configuration.ContainsKey("DefaultLinuxPermissionsOnStoreCreation") ? configuration["DefaultLinuxPermissionsOnStoreCreation"] : DEFAULT_LINUX_PERMISSION_SETTING; } }
38+
public static string DefaultOwnerOnStoreCreation { get { return configuration.ContainsKey("DefaultOwnerOnStoreCreation") ? configuration["DefaultOwnerOnStoreCreation"] : DEFAULT_OWNER_SETTING; } }
3039
public static FileTransferProtocolEnum FileTransferProtocol
3140
{
3241
get
@@ -95,6 +104,8 @@ private static void ValidateConfiguration(ILogger logger)
95104
logger.LogDebug($"Missing configuration parameter - SeparateUploadFilePath. Will set to default value of ''");
96105
if (!configuration.ContainsKey("DefaultLinuxPermissionsOnStoreCreation"))
97106
logger.LogDebug($"Missing configuration parameter - DefaultLinuxPermissionsOnStoreCreation. Will set to default value of '{DEFAULT_LINUX_PERMISSION_SETTING}'");
107+
if (!configuration.ContainsKey("DefaultOwnerOnStoreCreation"))
108+
logger.LogDebug($"Missing configuration parameter - DefaultOwnerOnStoreCreation. Will set to default value of '{DEFAULT_OWNER_SETTING}'");
98109
if (!configuration.ContainsKey("FileTransferProtocol"))
99110
logger.LogDebug($"Missing configuration parameter - FileTransferProtocol. Will set to default value of 'SCP'");
100111
}
909 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)