Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id ACC20200B7A for ; Mon, 5 Sep 2016 16:42:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A9AB9160ABC; Mon, 5 Sep 2016 14:42:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F0285160AB0 for ; Mon, 5 Sep 2016 16:42:12 +0200 (CEST) Received: (qmail 79618 invoked by uid 500); 5 Sep 2016 14:42:12 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 79606 invoked by uid 99); 5 Sep 2016 14:42:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2016 14:42:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 38141C62EB for ; Mon, 5 Sep 2016 14:42:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id mi5BA4WjGgV2 for ; Mon, 5 Sep 2016 14:42:10 +0000 (UTC) Received: from mail-ua0-f182.google.com (mail-ua0-f182.google.com [209.85.217.182]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 4426D5FC23 for ; Mon, 5 Sep 2016 14:42:10 +0000 (UTC) Received: by mail-ua0-f182.google.com with SMTP id u68so8207280uau.1 for ; Mon, 05 Sep 2016 07:42:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=OZhwzJZ2EvXFv7rHVuyd67lNU4yl2SE+zrOMUd83PmQ=; b=tvYfmPhONzat5LCqlquBlSm3neqWDjNni8e5cYy4qqDklLApgIyBFJaoNtLZol/+/a J6jBRe0zATYNiUCRc2pkNkVf1ImJS5CnkWjpmedzCOjBnG25KOY5yjYAPbDpP8/MYuc3 bA8aMjInvONhw3lpo8Hc5ELmUwkanp/al17CCz0OemfDi35Ew4rSJEmOm9pVM09OOHTt mTbgdKsdlH4fS9v6it3IttGZnB5TFQHFUOqff/dDUYwyg38GTCtbAHT7utFsR6L9iz5R vXH5WaNZuLFPcOawQmBhxDpdhdfxC+vM6k6ts4sTYYjhbBQ6wMto5bbCqfUK40tAKtVc 5G1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=OZhwzJZ2EvXFv7rHVuyd67lNU4yl2SE+zrOMUd83PmQ=; b=OptD29N6ImRYPd3RLKqD4UbAEfQ0o009lt5QmSgE8rlIS0snP+MnhHU9kLPkn6BIo9 sObVBsMgG1WTXVwAr90OWPs3kSj/i+hA6+tnwWhcu8Hm9loIeQvSIA9OVTcBEp3ZAXao UzIo0nw4SkIdqN7aEzfo+XhdIUiK2x1zmvE77ILdr1rj1d4KzxMeoQKrtdcv2IQY5cD7 hPEDMLLJnhMONYcVc9In5jDNKOQcB1w+WpHnd30Ih3GjX4v1ZjvUD+e0dCMrV1uDhuO3 QfZxsR+fHfcLwz0BjbKgzqj2gnoYXSwiWU1yurESuJC1uCA2NxLoDPFC6OwD+JCLu26R Eabw== X-Gm-Message-State: AE9vXwM22Wu2EAkIpsI19JCftD4Au5oMIK0xsi/6+FgrrBb7xHLuEVTpmcJ3bb4ruKGWqrBtQjFD8EzWdeXztg== X-Received: by 10.159.34.109 with SMTP id 100mr6810758uad.28.1473086529793; Mon, 05 Sep 2016 07:42:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.156.77 with HTTP; Mon, 5 Sep 2016 07:42:09 -0700 (PDT) Received: by 10.31.156.77 with HTTP; Mon, 5 Sep 2016 07:42:09 -0700 (PDT) In-Reply-To: References: From: Will Stevens Date: Mon, 5 Sep 2016 10:42:09 -0400 Message-ID: Subject: Re: api uploadsslcert encoding issue To: dev@cloudstack.apache.org Content-Type: multipart/alternative; boundary=001a113d154854f4b2053bc3af41 archived-at: Mon, 05 Sep 2016 14:42:13 -0000 --001a113d154854f4b2053bc3af41 Content-Type: text/plain; charset=UTF-8 What acs version are you using? I believe there was a problem with double encoding in some older releases. Maybe someone else can weigh in who knows for sure. On Sep 5, 2016 10:27 AM, "Patrick W." wrote: > Has someone managed to upload a certificate, its chain and its key in a > single call, using the uploadsslcert API command? > > I've done attempts with cloudmonkey, in python, etc. tried all possible > formatting and encoding combinations but I always get errors > > - Expected X509 certificate. Failed due to String index out of range: > - Error parsing certificate data Invalid certificate format. Expected X509 > certificate > - Error parsing certificate data Invalid Certificate format. Failed due to > problem parsing cert: java.security.cert.CertificateException: > java.io.IOException: corrupted stream - out of bounds length found > > Has anybody succeeded with this? if yes, I'd be interested to reuse the > exact same approach. > > thanks! > --001a113d154854f4b2053bc3af41--