src/main/java/org/dasein/cloud/cloudstack/network/LoadBalancers.java
private Document uploadSslCertificate(SSLCertificateCreateOptions opts, boolean cs44hack) throws InternalException, CloudException {
        // TODO: add trace
        final List<Param> params = new ArrayList<Param>();
        try {
            params.add(new Param("certificate",
                    cs44hack ? URLEncoder.encode(opts.getCertificateBody(), "UTF-8") : opts.getCertificateBody()));
            params.add(new Param("privatekey",
                    cs44hack ? URLEncoder.encode(opts.getPrivateKey(), "UTF-8") : opts.getPrivateKey()));
            if( opts.getCertificateChain() != null ) {
                params.add(new Param("certchain",
                        cs44hack ? URLEncoder.encode(opts.getCertificateChain(), "UTF-8") : opts.getCertificateChain()));
            }
        } catch (UnsupportedEncodingException e) {
            throw new InternalException(e);
        }
        return new CSMethod(getProvider()).get(UPLOAD_SSL_CERTIFICATE, params);
    }
/**
     * Upload SSL certificate, optionally using parameter double encoding to address CLOUDSTACK-6864 found in 4.4
     * @param opts
     * @param cs44hack
     * @return Document
     */
Upload SSL certificate, optionally using parameter double encoding to address CLOUDSTACK-6864 found in 4.4
@param opts
@param cs44hack
@return Document
Upload SSL certificate optionally using parameter double encoding to address CLOUDSTACK - 6864 found in 4 . 4 @param opts @param cs44hack @return Document
private Document uploadSslCertificate(SSLCertificateCreateOptions opts, boolean cs44hack) throws InternalException, CloudException {
        final List<Param> params = new ArrayList<Param>();
        try {
            params.add(new Param("certificate",
                    cs44hack ? URLEncoder.encode(opts.getCertificateBody(), "UTF-8") : opts.getCertificateBody()));
            params.add(new Param("privatekey",
                    cs44hack ? URLEncoder.encode(opts.getPrivateKey(), "UTF-8") : opts.getPrivateKey()));
            if( opts.getCertificateChain() != null ) {
                params.add(new Param("certchain",
                        cs44hack ? URLEncoder.encode(opts.getCertificateChain(), "UTF-8") : opts.getCertificateChain()));
            }
        } catch (UnsupportedEncodingException e) {
            throw new InternalException(e);
        }
        return new CSMethod(getProvider()).get(UPLOAD_SSL_CERTIFICATE, params);
    }
private Document uploadSslCertificate ( SSLCertificateCreateOptions opts , boolean cs44hack ) throws InternalException , CloudException { final List < Param > params = new ArrayList < Param > ( ) ; try { params . add ( new Param ( "certificate" , cs44hack ? URLEncoder . encode ( opts . getCertificateBody ( ) , "UTF-8" ) : opts . getCertificateBody ( ) ) ) ; params . add ( new Param ( "privatekey" , cs44hack ? URLEncoder . encode ( opts . getPrivateKey ( ) , "UTF-8" ) : opts . getPrivateKey ( ) ) ) ; if ( opts . getCertificateChain ( ) != null ) { params . add ( new Param ( "certchain" , cs44hack ? URLEncoder . encode ( opts . getCertificateChain ( ) , "UTF-8" ) : opts . getCertificateChain ( ) ) ) ; } } catch ( UnsupportedEncodingException e ) { throw new InternalException ( e ) ; } return new CSMethod ( getProvider ( ) ) . get ( UPLOAD_SSL_CERTIFICATE , params ) ; }
Upload SSL certificate, optionally using parameter double encoding to address CLOUDSTACK-6864 found in 4.4
 @param opts
 @param cs44hack
 @return Document
Upload SSL certificate optionally using parameter double encoding to address CLOUDSTACK - 6864 found in 4 . 4 @param opts @param cs44hack @return Document
// TODO: add trace