Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate testcerts #254

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 6 additions & 83 deletions cmd/keymaster/testcerts_test.go
Original file line number Diff line number Diff line change
@@ -1,86 +1,9 @@
package main

const rootCAPem = `-----BEGIN CERTIFICATE-----
MIIE1jCCAr4CAQowDQYJKoZIhvcNAQELBQAwMTELMAkGA1UEBhMCVVMxEDAOBgNV
BAoMB1Rlc3RPcmcxEDAOBgNVBAsMB1Rlc3QgQ0EwHhcNMjEwMjA1MDA1NDUwWhcN
NDEwMTMxMDA1NDUwWjAxMQswCQYDVQQGEwJVUzEQMA4GA1UECgwHVGVzdE9yZzEQ
MA4GA1UECwwHVGVzdCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIB
AMepGyjzJkXS3gCBStImA3I/OY6us1MqzqQGeRJIL/13n9PHqPfXIjadJ7z0krFB
xXGT2WyVRhoc+tP1K8rfwRjNtMDjxtzphDLaUSvjhB5FvOhR0Ch6ByrFlP507FVa
MeQo+8Bex9q0SaHXtGLM5hWuYQpG6dpOlXl6DKQwqYjptzL/RfMwJKukaoc0J5e+
3xNR3XhC+ejMHp99rEORC4aLhfWhwfOhtIslIVI/HXKu72/lxIMpkhaoObBgqdQC
3e5KMg+/liZ6y/HOhN49pKuNq1SfKy6tOpI4fwZnWvKviNx8E16P4JlqPdLPAULb
aGZH7FaAwtd3bBeKXRTsasZLfEA/K2AOIucquehEH8Nkprjn6XlDbZf/1zfAqID/
lk/QTo3uhyYjj4O3G8VSZ9PCQF/n918FDOY6DtnjmY3z0ZjAZv95sf8JBbF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D4ewiNqpX+GQbt+3g/
0JvDLTUKMJt6T5VF9m1V/BjzDn27gBnWZ2AhmokXtHd2Lln0R98f4vIr/pNvsh5e
i+/YEesqAUB7fGeyGP8fyWv4JmJ2LW9U3Q4gSHveX5brsr37aclFQwCCLgSF4Sps
b035mZ7LRCGtbMhK67ZjEIgKOwKBgQDqKYpFmEfdAvJC4AwvypLy1cHQcwkWKUqf
99A0SlOEsD2f5tb0K5tJEeG7k0QbEc60G+eINwFezivp+mF5VR1TWo4F2zlrqFOW
hGZJvvOj2d88cqzvZ1D2EDO6pGwnjnfK4znR/2aBlbPHqaWk4bbMg+963ekWT66C
z5gXSjAfdwKBgQC9BOrGyaN8PhGVa5xX/xreaD9W1w8PBgcpx4H4zOM10io3PgVp
og3wwhvTmobdsfjf6OSE3yEV8ny5lSehCJaVKVxZAcbJqSNAyd8ZkSG/DYQNHhb4
2Yfravg/ezvVZI08+YYQWB3E6birF1QsVKdeXkv7mIJ96KicxZ5i0aqLDQKBgQCm
NwZnkEiyoTzGK7N62RimNwV0qbNxf63xDz9DXt8Z+OBFeN5sQ+feXksVktttO562
Snh3QFRAr6iMVaaLMde3KzhU/+AqgzmSRjk1b84SKL1Fc0E+TuAxSh7uBXigO4jd
A54valOg+Fq9B7cE6xOO6Lg9RvgFVlpRkHotTgQK0QKBgFHI5lMXMYydeAT59zb5
mIFoFLOJ+JZ4nvoNu1uFQCVKH0bARK3t8oWL7ZCRtc8vANiFS8I/JTQVO1HhW3NE
fjl8EwIhuijeojU23fzVlFdXjGGzXqHO5Bm0nDuRV6XirMF5+Lh6w+y8UYLketwc
4ru0SF3ayA6bVHGXEeS5TOkv
-----END PRIVATE KEY-----`

import (
"github.com/Cloud-Foundations/keymaster/misc/testcerts"
)

var rootCAPem = testcerts.RootCertPem
var localhostCertPem = testcerts.LocalHostCertPem
var localhostKeyPem = testcerts.LocalHostKeyPem
89 changes: 6 additions & 83 deletions cmd/keymasterd/testcerts_test.go
Original file line number Diff line number Diff line change
@@ -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aBlbPHqaWk4bbMg+963ekWT66C
z5gXSjAfdwKBgQC9BOrGyaN8PhGVa5xX/xreaD9W1w8PBgcpx4H4zOM10io3PgVp
og3wwhvTmobdsfjf6OSE3yEV8ny5lSehCJaVKVxZAcbJqSNAyd8ZkSG/DYQNHhb4
2Yfravg/ezvVZI08+YYQWB3E6birF1QsVKdeXkv7mIJ96KicxZ5i0aqLDQKBgQCm
NwZnkEiyoTzGK7N62RimNwV0qbNxf63xDz9DXt8Z+OBFeN5sQ+feXksVktttO562
Snh3QFRAr6iMVaaLMde3KzhU/+AqgzmSRjk1b84SKL1Fc0E+TuAxSh7uBXigO4jd
A54valOg+Fq9B7cE6xOO6Lg9RvgFVlpRkHotTgQK0QKBgFHI5lMXMYydeAT59zb5
mIFoFLOJ+JZ4nvoNu1uFQCVKH0bARK3t8oWL7ZCRtc8vANiFS8I/JTQVO1HhW3NE
fjl8EwIhuijeojU23fzVlFdXjGGzXqHO5Bm0nDuRV6XirMF5+Lh6w+y8UYLketwc
4ru0SF3ayA6bVHGXEeS5TOkv
-----END PRIVATE KEY-----`

import (
"github.com/Cloud-Foundations/keymaster/misc/testcerts"
)

var rootCAPem = testcerts.RootCertPem
var localhostCertPem = testcerts.LocalHostCertPem
var localhostKeyPem = testcerts.LocalHostKeyPem
89 changes: 6 additions & 83 deletions lib/authutil/testcerts_test.go
Original file line number Diff line number Diff line change
@@ -1,86 +1,9 @@
package authutil

const rootCAPem = `-----BEGIN CERTIFICATE-----
MIIE1jCCAr4CAQowDQYJKoZIhvcNAQELBQAwMTELMAkGA1UEBhMCVVMxEDAOBgNV
BAoMB1Rlc3RPcmcxEDAOBgNVBAsMB1Rlc3QgQ0EwHhcNMjEwMjA1MDA1NDUwWhcN
NDEwMTMxMDA1NDUwWjAxMQswCQYDVQQGEwJVUzEQMA4GA1UECgwHVGVzdE9yZzEQ
MA4GA1UECwwHVGVzdCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIB
AMepGyjzJk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c0E+TuAxSh7uBXigO4jd
A54valOg+Fq9B7cE6xOO6Lg9RvgFVlpRkHotTgQK0QKBgFHI5lMXMYydeAT59zb5
mIFoFLOJ+JZ4nvoNu1uFQCVKH0bARK3t8oWL7ZCRtc8vANiFS8I/JTQVO1HhW3NE
fjl8EwIhuijeojU23fzVlFdXjGGzXqHO5Bm0nDuRV6XirMF5+Lh6w+y8UYLketwc
4ru0SF3ayA6bVHGXEeS5TOkv
-----END PRIVATE KEY-----`

import (
"github.com/Cloud-Foundations/keymaster/misc/testcerts"
)

var rootCAPem = testcerts.RootCertPem
var localhostCertPem = testcerts.LocalHostCertPem
var localhostKeyPem = testcerts.LocalHostKeyPem
Loading
Loading