Skip to content

BUG-Error loading passphraseless certificate with empty passphrase field #11

@mrnetops

Description

@mrnetops

Error when attempting to update a certificate without a passphrase (when no passphrase is present on the certificate)

Encountered an error on POST request to URL https://xx.xx.xx.xx/api/sslkeyandcertificate: HTTP code: 400; error from Avi: map[error:Incomplete Input SSLKeyAndCertificate]

I SUSPECT somewhere in the code (probably around github.com/lbapi/certificate/model.go), lbAPI incorrectly always requires a passphrase for the struct and falls over if it's not present.

Log snippet
time="2020-11-05T22:59:37Z"
level=error
msg="Error #1: unexpected EOF\nError #2: unexpected end of JSON input\n"
clientIP=xx.xx.xx.xx
dataLength=40
hostname=38bdf3d5a544
latency=30084
method=PUT
path=/api/v1/virtualserver
referer="https://xx/vs"
request="map[]"
statusCode=400
user=xx
userAgent="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36"

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