| 36 | const CAName = "ejbCA" |
| 37 | |
| 38 | type EJBCA struct { |
| 39 | // Connection settings |
| 40 | // EJBCA installation. ie https://localhost/ejbca/ |
| 41 | serverURL string |
| 42 | // client private key used for authentication |
| 43 | keyPath string |
| 44 | // client certificate used for authentication |
| 45 | certPath string |
| 46 | // root CA |
| 47 | rootCAPath string |
| 48 | |
| 49 | // Entity Configuration settings |
| 50 | // https://docs.keyfactor.com/signserver/latest/tutorial-signserver-container-signing-with-cosign#id-(6.3latest)Tutorial-SignServerContainerSigningwithCosign-Step2-Issuesigningcertificate |
| 51 | certificateProfileName string |
| 52 | endEntityProfileName string |
| 53 | caName string |
| 54 | } |
| 55 | |
| 56 | func New(serverURL, keyPath, certPath, rootCAPath, certProfileName, endEntityProfileName, caName string) (*EJBCA, error) { |
| 57 | if serverURL == "" || keyPath == "" || certPath == "" || certProfileName == "" || endEntityProfileName == "" || caName == "" { |
nothing calls this directly
no outgoing calls
no test coverage detected