diff --git a/templates/PKI/README.md b/templates/PKI/README.md new file mode 100644 index 0000000..e239858 --- /dev/null +++ b/templates/PKI/README.md @@ -0,0 +1,17 @@ +# PKI + +### Templates +Some utils files in order to have a ready solution in order to generate bundles. + +**NB** via console is trivial : + +Public CRT +'cat SSE\ Lab\ Root\ CA_crt.pem >> certificate-bundle.pem +cat SSE\ Lab\ Intermediate\ CA_crt.pem >> certificate-bundle.pem +cat RUP\ Services_crt.pem >> certificate-bundle.pem' + +Private Key +'cat RUP\ Services_prv.pem >> certificate-bundle.key' + + + diff --git a/templates/PKI/certificate-bundle(structure).pem b/templates/PKI/certificate-bundle(structure).pem new file mode 100644 index 0000000..6b5c56b --- /dev/null +++ b/templates/PKI/certificate-bundle(structure).pem @@ -0,0 +1,9 @@ +-----BEGIN CERTIFICATE----- +Root CA public key data +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +Intermediate CA public key data +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +Leaf Certificate public key data +-----END CERTIFICATE----- \ No newline at end of file diff --git a/templates/PKI/certificate-bundle(template).pem b/templates/PKI/certificate-bundle(template).pem new file mode 100644 index 0000000..48ebb9e --- /dev/null +++ b/templates/PKI/certificate-bundle(template).pem @@ -0,0 +1,53 @@ +-----BEGIN CERTIFICATE----- +MIIEOzCCAyOgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBkDELMAkGA1UEBhMCSVQx +DTALBgNVBAgMBFBpc2ExDTALBgNVBAcMBFBpc2ExDTALBgNVBAoMBElTVEkxDzAN +BgNVBAsMBlNTRUxhYjEqMCgGCSqGSIb3DQEJARYbZmFiaW8uc2luaWJhbGRpQGlz +dGkuY25yLml0MRcwFQYDVQQDDA5zc2VsYWItcm9vdC1jYTAeFw0yNTAzMDUxMDA4 +MjRaFw0zNTAzMDMxMDA4MjRaMIGQMQswCQYDVQQGEwJJVDENMAsGA1UECAwEUGlz +YTENMAsGA1UEBwwEUGlzYTENMAsGA1UECgwESVNUSTEPMA0GA1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NVHSMEGDAWgBTYTk488gvOsh5qJ/VbKYxZRbQ/ +NzAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBhjANBgkqhkiG9w0BAQsF +AAOCAQEAVbuglqJ2/vDBkFunvQa0SdR/OaL9cRtbfGqhYpc3sZVO2tDh7aKSrr9o +7EeLFL+GKt9f8IqKMMTC33Ac/m+Ne6wvyv6sqpbTo84gdVlVV/YjWt9spEUivHa4 +TLxEhi7KeO2DmhMGYWI/ogTaNKWboUmZZ4PoBS0Z3Rz6I97UcPB89AcKLGAW0dtC +fAQSHYVQ0Egm4Qf8ICJBcdwdnjffSUk3kkVcKg4qr+5kjVACjRJfqOm7PDrh2jmA +gnMxtST45WTgWlWa4cS+/Bb9KreQCdfcN1xevOzOJSVecVYT40N8n8nwhCIkMPAM +1QzsP1M6grD89nHeECK4LEpLTdBhvw== +-----END CERTIFICATE----- +-----BEGIN CERTIFICATE----- +Leaf Certificate public key data +-----END CERTIFICATE----- \ No newline at end of file