s-seitz opened a new issue #2558: API uploadSslCert does not work
Verify first that your issue/request is not already reported on GitHub.
Also test if the latest release and master branch are affected too.
Always add information AFTER of these HTML comments, but no need to delete
##### ISSUE TYPE
<!-- Pick one below and delete the rest -->
* Bug Report
##### COMPONENT NAME
Categorize the issue, e.g. API, VR, VPN, UI, etc.
##### CLOUDSTACK VERSION
New line separated list of affected versions, commit ID for issues on master
Information about the configuration if relevant, e.g. basic network,
advanced networking, etc. N/A otherwise
Advanced Networking, Cloudstack 18.104.22.168 on Ubuntu 14.04 LTS, MySQL
##### OS / ENVIRONMENT
Information about the environment if relevant, N/A otherwise
Ubuntu 14.04.5 LTS
<!-- Explain the problem/feature briefly -->
Uploading sslcertificates (
https://cloudstack.apache.org/api/apidocs-4.11/apis/uploadSslCert.html ) fails
for two reasons.
a) Including the CertChain, it's very likely that the Request Header Size
grows > 8k and results in HTTP Error 414.
b) Leaving the CertChain empty to get a shorter GET Request, the Cloudstack
API responds with Error 530: DB Exception on:
##### STEPS TO REPRODUCE
For bugs, show exactly how to reproduce the problem, using a minimal
test-case. Use Screenshots if accurate.
# cloudmonkey upload sslcert certificate="$(cat certificate.crt)"
privatekey="$(cat privatekey.key)" name="name.of.that.crt"
For new features, show how the feature would be used.
<!-- Paste example playbooks or commands between quotes below -->
Here 's the sample output of a response. For obvious reasons the
certificate, key and fingerprint as well as the name are redacted.
Error 530: DB Exception on: com.mysql.jdbc.JDBC4PreparedStatement@7ba59657:
INSERT INTO sslcerts (sslcerts.id, sslcerts.uuid, sslcerts.certificate,
sslcerts.chain, sslcerts.key, sslcerts.password, sslcerts.account_id,
sslcerts.domain_id, sslcerts.fingerprint, sslcerts.name) VALUES (null,
CERTIFICATE-----\n R E D A C T E D \n-----END CERTIFICATE-----', null,
_binary'K E Y R E D A C T E D==', null, 160, 2,
<!-- You can also paste gist.github.com links for larger files -->
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
One would expect a certificate available to select after uploading it.
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
Apache Git Services