Skip to content

Commit

Permalink
Merge 3af57a7 into f842ba1
Browse files Browse the repository at this point in the history
  • Loading branch information
fiddlermikey authored Jan 11, 2024
2 parents f842ba1 + 3af57a7 commit b691449
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 53 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/keyfactor-bootstrap-workflow.yml
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 }}
42 changes: 0 additions & 42 deletions .github/workflows/keyfactor-starter-workflow.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

v1.1.0
- Add Support for CNAME Domain Validation

v1.0.10
- Sync Issue where Sync only works after service restart fixed
- Sync Fix when errors occur in the CSC Api so next sync works
Expand Down
24 changes: 21 additions & 3 deletions CscGlobalCaProxy/RequestManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down Expand Up @@ -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"];
Expand Down Expand Up @@ -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"];
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This repository contains an AnyGateway CA Connector, which is a plugin to the Ke

## Support for CSC Global

CSC Global
CSC Global is supported by Keyfactor for Keyfactor customers. If you have a support issue, please open a support ticket via the Keyfactor Support Portal at https://support.keyfactor.com

###### To report a problem or suggest a new feature, use the **[Issues](../../issues)** tab. If you want to contribute actual bug fixes or proposed enhancements, use the **[Pull requests](../../pulls)** tab.

Expand Down
16 changes: 9 additions & 7 deletions integration-manifest.json
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"
}

0 comments on commit b691449

Please sign in to comment.