Skip to content

can not update ssl #15

@simanchou

Description

@simanchou

sfb, err := ioutil.ReadFile("mydomain.com.cer")
sslFile := &system.Systemfile{
Filename: "mydomain.com.20220315.cer",
Filecontent: base64.StdEncoding.EncodeToString(sfb),
Filelocation: "/nsconfig/ssl/",
Fileencoding: "BASE64",
}
addResp, err := client.AddResource(service.Systemfile.Type(), "mydomain.com.20220315.cer", sslFile)

upload file successful, and i can find the file in web GUI.

sslUpdateReq := &ssl.Sslcertkey{
Certkey: "mydomain.com",
// Cert: "/nsconfig/ssl/mydomain.com.20220315.cer", still fail
Cert: "mydomain.com.20220315.cer",
Nodomaincheck: true,
}

updateResp, err := client.UpdateResource(service.Sslcertkey.Type(), "mydomain.com", sslUpdateReq)

2022/03/15 10:41:35 [ERROR] nitro-go: Failed to update resource of type sslcertkey, name=mydomain.com err=failed: 599 Netscaler specific error ({ "errorcode": 278, "message": "Invalid argument [cert]", "severity": "ERROR" })

update ssl fail, how can i define the cert argument?

BTW, i can update the ssl with the file upload above in web GUI, just fail by the SDK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions