-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
54 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Keyfactor Bootstrap Workflow | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, closed, synchronize, edited, reopened] | ||
push: | ||
create: | ||
branches: | ||
- 'release-*.*' | ||
|
||
jobs: | ||
call-starter-workflow: | ||
uses: keyfactor/actions/.github/workflows/starter.yml@v2 | ||
secrets: | ||
token: ${{ secrets.V2BUILDTOKEN}} | ||
APPROVE_README_PUSH: ${{ secrets.APPROVE_README_PUSH}} | ||
gpg_key: ${{ secrets.KF_GPG_PRIVATE_KEY }} | ||
gpg_pass: ${{ secrets.KF_GPG_PASSPHRASE }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,10 +108,20 @@ public DomainControlValidation GetDomainControlValidation(string methodType, str | |
}; | ||
} | ||
|
||
|
||
public static Func<string, string> Pemify = ss => | ||
ss.Length <= 64 ? ss : ss.Substring(0, 64) + "\n" + Pemify(ss.Substring(64)); | ||
|
||
public RegistrationRequest GetRegistrationRequest(EnrollmentProductInfo productInfo, string csr, | ||
Dictionary<string, string[]> sans) | ||
{ | ||
var bytes = Encoding.UTF8.GetBytes(csr); | ||
|
||
var cert = "-----BEGIN CERTIFICATE REQUEST-----\r\n"; | ||
cert = cert + Pemify(csr); | ||
cert = cert + "\r\n-----END CERTIFICATE REQUEST-----"; | ||
|
||
|
||
var bytes = Encoding.UTF8.GetBytes(cert); | ||
var encodedString = Convert.ToBase64String(bytes); | ||
var commonNameValidationEmail = productInfo.ProductParameters["CN DCV Email ([email protected])"]; | ||
var methodType = productInfo.ProductParameters["Domain Control Validation Method"]; | ||
|
@@ -174,7 +184,11 @@ public Notifications GetNotifications(EnrollmentProductInfo productInfo) | |
public RenewalRequest GetRenewalRequest(EnrollmentProductInfo productInfo, string uUId, string csr, | ||
Dictionary<string, string[]> sans) | ||
{ | ||
var bytes = Encoding.UTF8.GetBytes(csr); | ||
var cert = "-----BEGIN CERTIFICATE REQUEST-----\r\n"; | ||
cert = cert + Pemify(csr); | ||
cert = cert + "\r\n-----END CERTIFICATE REQUEST-----"; | ||
|
||
var bytes = Encoding.UTF8.GetBytes(cert); | ||
var encodedString = Convert.ToBase64String(bytes); | ||
var commonNameValidationEmail = productInfo.ProductParameters["CN DCV Email ([email protected])"]; | ||
var methodType = productInfo.ProductParameters["Domain Control Validation Method"]; | ||
|
@@ -228,7 +242,11 @@ private List<SubjectAlternativeName> GetSubjectAlternativeNames(EnrollmentProduc | |
public ReissueRequest GetReissueRequest(EnrollmentProductInfo productInfo, string uUId, string csr, | ||
Dictionary<string, string[]> sans) | ||
{ | ||
var bytes = Encoding.UTF8.GetBytes(csr); | ||
var cert = "-----BEGIN CERTIFICATE REQUEST-----\r\n"; | ||
cert = cert + Pemify(csr); | ||
cert = cert + "\r\n-----END CERTIFICATE REQUEST-----"; | ||
|
||
var bytes = Encoding.UTF8.GetBytes(cert); | ||
var encodedString = Convert.ToBase64String(bytes); | ||
var commonNameValidationEmail = productInfo.ProductParameters["CN DCV Email ([email protected])"]; | ||
var methodType = productInfo.ProductParameters["Domain Control Validation Method"]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
{ | ||
"$schema": "https://keyfactor.github.io/integration-manifest-schema.json", | ||
"integration_type": "ca-gateway", | ||
"name": "CSC Global", | ||
"status": "production", | ||
"description": "Csc Global operates a PKI as a service platform for customers around the globe. The AnyGateway solution for CscGlobal is designed to allow Keyfactor Command the ability to: - Sync certificates issued from the CA - Request new certificates from the CA - Revoke certificates directly from Keyfactor Command", | ||
"link_github": true, | ||
"update_catalog": true | ||
"$schema": "https://keyfactor.github.io/integration-manifest-schema.json", | ||
"integration_type": "ca-gateway", | ||
"name": "CSC Global", | ||
"status": "production", | ||
"description": "Csc Global operates a PKI as a service platform for customers around the globe. The AnyGateway solution for CscGlobal is designed to allow Keyfactor Command the ability to: - Sync certificates issued from the CA - Request new certificates from the CA - Revoke certificates directly from Keyfactor Command", | ||
"link_github": true, | ||
"update_catalog": true, | ||
"support_level": "kf-supported", | ||
"release_dir": "CscGlobalCaProxy/bin/Release" | ||
} |