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

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

Open
mrnetops opened this issue Nov 6, 2020 · 0 comments

Comments

@mrnetops
Copy link

mrnetops commented Nov 6, 2020

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant