s-seitz opened a new issue #2558: API uploadSslCert does not work
URL: https://github.com/apache/cloudstack/issues/2558
 
 
   <!--
   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 
the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   API
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master 
branch.
   -->
   
   ~~~
   4.11.0.0
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, 
advanced networking, etc.  N/A otherwise
   -->
   
   Advanced Networking, Cloudstack 4.11.0.0 on Ubuntu 14.04 LTS, MySQL 
5.5.59-0ubuntu0.14.04.1
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   Ubuntu 14.04.5 LTS
   ##### SUMMARY
   <!-- 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: 
com.mysql.jdbc.JDBC4PreparedStatement@7ba59657
   
   
   ##### 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, 
_binary'4ed417b3-77b6-42bf-9a82-81ed25aaedc2', _binary'-----BEGIN 
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, 
_binary'00:11:22:33:44:55:66:77:88:F7:AE:73:81:BA:D9:B7:AF:46:D8:E2:F8:EA:7C:FF:00:B7:DE:F7:D7:CF:9B:C9',
 _binary'STAR.some.tld')
   errorcode,uuidList,cserrorcode,errortext
   
   
   
   ~~~
   
   <!-- 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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to