Documentation ¶
Index ¶
- Constants
- Variables
- func CSRBytesToPEMString(ctx context.Context, input []byte) (output string)
- func GetFirstCertificate(ctx context.Context, certificateContents string) (certificate string)
- type ApViewXSigner
- func (signer *ApViewXSigner) CreateCertificate(ctx context.Context, appviewxEnv *AppViewXEnv, sessionID string, ...) (resourceID, certificateContents *string, statusCode int, err error)
- func (signer *ApViewXSigner) DownloadCertificate(ctx context.Context, appviewxEnv *AppViewXEnv, sessionID, resourceID string, ...) (certificateContents string, err error)
- func (signer *ApViewXSigner) LoginAndGetSessionID(ctx context.Context, appviewxEnv *AppViewXEnv) (output string, err error)
- func (signer *ApViewXSigner) MakeCallToAppViewXAndGetCertificate(ctx context.Context, csr *string, serverOpts *common.ServerOpts, isSync bool, ...) (cert []byte, resourceID *string, err error)
- func (signer *ApViewXSigner) MakeGetCallAndReturnResponse(ctx context.Context, url string, additionalRequestHeaders map[string]string) (output []byte, err error)
- func (signer *ApViewXSigner) MakePostCallAndReturnResponse(ctx context.Context, url string, payload interface{}, ...) (output []byte, statusCode int, err error)
- type AppViewXEnv
- type CaConnectorInfo
- type CertificateFormat
- type CertificateGroup
- type CreateCertificatePayload
- type CreateCertificateResponse
- type CreateCertificateResponseInternal
- type DownloadCertificateResponse
- type DownloadCertificateResponseInternal
- type SessionPayload
- type SessionResponse
- type SessionResponseInternal
- type UploadCSRDetails
Constants ¶
View Source
const ( AppViewXCA = "AppViewX" MicrosoftCA = "Microsoft Enterprise" EJBCA = "Ejbca" )
Variables ¶
View Source
var CurrentCA = os.Getenv(common.APPVIEWX_ENV_CERTIFICATE_AUTHORITY)
Functions ¶
func CSRBytesToPEMString ¶
Types ¶
type ApViewXSigner ¶
func (*ApViewXSigner) CreateCertificate ¶
func (*ApViewXSigner) DownloadCertificate ¶
func (signer *ApViewXSigner) DownloadCertificate(ctx context.Context, appviewxEnv *AppViewXEnv, sessionID, resourceID string, retryTimes int) (certificateContents string, err error)
func (*ApViewXSigner) LoginAndGetSessionID ¶
func (signer *ApViewXSigner) LoginAndGetSessionID(ctx context.Context, appviewxEnv *AppViewXEnv) (output string, err error)
func (*ApViewXSigner) MakeCallToAppViewXAndGetCertificate ¶
func (signer *ApViewXSigner) MakeCallToAppViewXAndGetCertificate(ctx context.Context, csr *string, serverOpts *common.ServerOpts, isSync bool, externalRequestID string, isDownload bool) (cert []byte, resourceID *string, err error)
MakeCallToAppViewXAndGetCertificate calls appviewx and handles sync or async mode of certificate enrollment
func (*ApViewXSigner) MakeGetCallAndReturnResponse ¶
type AppViewXEnv ¶
type AppViewXEnv struct { AppViewXIsHTTPS bool `json:"appviewxIsHTTPS"` AppViewXHost string `json:"appviewxHost"` AppViewXPort int `json:"appviewxPort"` AppViewXUserName string `json:"appviewxUserName"` AppViewXPassword string `json:"appviewxPassword"` CertificateAuthority string `json:"certificateAuthority"` CaSettingName string `json:"caSettingName"` Name string `json:"name,omitempty"` ValidityInDays int `json:"validityInDays"` CertificateGroupName string `json:"certificateGroupName"` Category string `json:"category"` VendorSpecificDetails map[string]interface{} `json:"vendorSpecificDetails"` SessionID string SessionLastGenerationTime *time.Time IsAppViewXCredentialsFromVault bool `json:"isAppViewXCredentialsFromVault"` }
type CaConnectorInfo ¶
type CaConnectorInfo struct { CertificateAuthority string `json:"certificateAuthority"` CaSettingName string `json:"caSettingName"` Name string `json:"name,omitempty"` GenericFields interface{} `json:"genericFields"` VendorSpecificDetails map[string]interface{} `json:"vendorSpecificDetails"` CustomAttributes interface{} `json:"customAttributes"` CertAttributes interface{} `json:"certAttributes"` ValidityInDays int `json:"validityInDays"` CertificateProfileName string `json:"certificateProfileName"` CsrParameters interface{} `json:"csrParameters"` }
type CertificateFormat ¶
type CertificateGroup ¶
type CertificateGroup struct {
Name string `json:"name"`
}
type CreateCertificatePayload ¶
type CreateCertificatePayload struct { WorkFlowType string `json:"workflowType"` UniqueCertificate bool `json:"uniqueCertificate"` CaConnectorInfo CaConnectorInfo `json:"caConnectorInfo"` CertificateGroup CertificateGroup `json:"certificateGroup"` UploadCSRDetails UploadCSRDetails `json:"uploadCsrDetails"` CertificateFormat *CertificateFormat `json:"certificateFormat"` }
type CreateCertificateResponse ¶
type CreateCertificateResponse struct { Response *CreateCertificateResponseInternal `json:"response"` Message string `json:"message"` AppStatusCode interface{} `json:"appStatusCode"` Tags interface{} `json:"tags"` Headers interface{} `json:"headers"` }
type DownloadCertificateResponse ¶
type DownloadCertificateResponse struct { Response DownloadCertificateResponseInternal `json:"response"` Message string `json:"message"` AppStatusCode interface{} `json:"appStatusCode"` Tags interface{} `json:"tags"` Headers interface{} `json:"headers"` }
type SessionPayload ¶
type SessionPayload struct{}
type SessionResponse ¶
type SessionResponse struct { Response SessionResponseInternal `json:"response"` Message interface{} `json:"message"` AppStatusCode interface{} `json:"appStatusCode"` Tags interface{} `json:"tags"` Headers interface{} `json:"headers"` }
type SessionResponseInternal ¶
type UploadCSRDetails ¶
Click to show internal directories.
Click to hide internal directories.