From patchwork Sun Jan 14 08:44:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selva Nair X-Patchwork-Id: 185 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director1.mail.ord1d.rsapps.net ([172.27.255.52]) by backend31.mail.ord1d.rsapps.net (Dovecot) with LMTP id qzyGA2KzW1qtTgAAgoeIoA for ; Sun, 14 Jan 2018 14:45:38 -0500 Received: from proxy8.mail.iad3a.rsapps.net ([172.27.255.52]) by director1.mail.ord1d.rsapps.net (Dovecot) with LMTP id AWMuAGKzW1oRUwAANGzteQ ; Sun, 14 Jan 2018 14:45:38 -0500 Received: from smtp2.gate.iad3a ([172.27.255.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy8.mail.iad3a.rsapps.net (Dovecot) with LMTP id 054KJWGzW1ryagAAsBr/qg ; Sun, 14 Jan 2018 14:45:37 -0500 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.34.181.88] Authentication-Results: smtp2.gate.iad3a.rsapps.net; iprev=pass policy.iprev="216.34.181.88"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dkim=fail (signature verification failed) header.d=gmail.com; dmarc=fail (p=none; dis=none) header.from=gmail.com X-Classification-ID: 7e49b280-f963-11e7-82b2-525400de56ae-1-1 Received: from [216.34.181.88] ([216.34.181.88:39043] helo=lists.sourceforge.net) by smtp2.gate.iad3a.rsapps.net (envelope-from ) (ecelerity 4.2.1.56364 r(Core:4.2.1.14)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id A7/A5-14469-163BB5A5; Sun, 14 Jan 2018 14:45:37 -0500 Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from ) id 1eaoD4-0005Du-2V; Sun, 14 Jan 2018 19:44:50 +0000 Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eaoD2-0005Do-VO for openvpn-devel@lists.sourceforge.net; Sun, 14 Jan 2018 19:44:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xTq2ULzRP34tQaoITp5GQVYKq9PkEJWAqGXwDhh12yo=; b=BIMl/po//fFO9Z6frckV+3rAoL bOGaQPa8Nqt9LrcuviAvvZizrGONG8KdqRZwmia/hAHs8rpS6PiizScVtXUKNYZezD5r5r2E4YZvq CvseWuGt0fHdWgcEYxhgb1aNP6SXHgZonRyyBWjjvsi2vOMNSma7bSllEshzFsJB+bng=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To :MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=xTq2ULzRP34tQaoITp5GQVYKq9PkEJWAqGXwDhh12yo=; b=d/9qGNUlFQ/Q7uyvREVOwmOgdf CDikDzWbJs3A52GemHdffKT/+/c9O2vsyzcdfyi5npgFzlc6trWaOCrSHejpAbt80yX4rXlmjgeYN 5WlqQSX9VlFhvGzyIP4n/YBhN88VCudk+A43tKovmdfoVEYC+lhU255d3g8pJeWHEzHg=; Received: from mail-io0-f196.google.com ([209.85.223.196]) by sfi-mx-4.v28.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) id 1eaoD2-0000rQ-3P for openvpn-devel@lists.sourceforge.net; Sun, 14 Jan 2018 19:44:48 +0000 Received: by mail-io0-f196.google.com with SMTP id d11so11028440iog.5 for ; Sun, 14 Jan 2018 11:44:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xTq2ULzRP34tQaoITp5GQVYKq9PkEJWAqGXwDhh12yo=; b=qACLDTv7C3LMB+54Z9osvtfsPvKnyafjshKaTzO6Yu2Zmq7FshC06LmtljtFp+QlmS GpgYQP75RwZtSZkI5EUHzqOBmYNjkYWZXSe3lyoy8Py6tPxKIeN6X04mAEGWvrEK8vEM psABZLGs6OmrQqUqXVonab2hR4wYW6J1TDD7zTufO4Eiyp5Cg7dimPlIMvysEVEtidjO OIOzPTBlpouR0yEM1QoLFwuxJzvB2baiCEAZljemDghlA4IQjGhSq7q0Vmi2Xif+sqKF wnuB66PELIrUqbmCK54wwJzfNDFIIJXQQnL5mStfS7hrRYnEM0A4in0iH0zc8P+vaGLg 9u4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xTq2ULzRP34tQaoITp5GQVYKq9PkEJWAqGXwDhh12yo=; b=cRAUe5tZbz7aI2PJ6++MKjeziAxX4wW5pxIExcSs2nA5aPs1VGMNRIa0wuDCSGS0kU jv5D4cf0926v5OFhWC2AsP5TBpyJdfU6w2ny99nJQNcbs6u33l0N5VsvUtT5gYvv+5PZ hICNltkaw4KZwdFBSOQnW9ixgNvzrc/tfi1Hz1so7EdeggiRSrcU3BFYKY5Dp2fnBn52 DpXbqLEMv33uZ2Vn3BaiEG+ENBS2pARdB536uZ6JgCmxwjkUCLlOdJmkvWXFfPeSPjDc 4unZNeCSnKjDa412ut5tVgvVhXBJ9y0p0YRNvpb0oIwG+mwjTM45bI25WKMeCee6Xnfg xjeg== X-Gm-Message-State: AKwxytfrCEuz8htm/x7KBPdVjDuzmkkpuoL7EMgGkfwm+bM9PdQm0CBb zn556jPCYNDMpI3e2SA8z0OaathP X-Google-Smtp-Source: ACJfBou9yGpHs81/6OpRWe23QKWif0Mle8BoX+smJsxbtsIE2SV//8WXaqjpXj1cS5++r1Yt+zhmrA== X-Received: by 10.107.58.8 with SMTP id h8mr33216503ioa.284.1515959082614; Sun, 14 Jan 2018 11:44:42 -0800 (PST) Received: from saturn.home.sansel.ca (CPE40167ea0e1c2-CM788df74daaa0.cpe.net.cable.rogers.com. [99.228.215.92]) by smtp.gmail.com with ESMTPSA id y64sm15244286ioy.25.2018.01.14.11.44.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 14 Jan 2018 11:44:42 -0800 (PST) From: selva.nair@gmail.com To: openvpn-devel@lists.sourceforge.net Date: Sun, 14 Jan 2018 14:44:33 -0500 Message-Id: <1515959073-10376-4-git-send-email-selva.nair@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1515959073-10376-1-git-send-email-selva.nair@gmail.com> References: <1515959073-10376-1-git-send-email-selva.nair@gmail.com> X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (selva.nair[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.223.196 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1eaoD2-0000rQ-3P Subject: [Openvpn-devel] [PATCH 3/3] Document management request >ECDSA_SIGN and response ecdsa-sig X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox From: Selva Nair Signed-off-by: Selva Nair Acked-By: Arne Schwabe --- doc/management-notes.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/doc/management-notes.txt b/doc/management-notes.txt index a9ba18a..e2e8249 100644 --- a/doc/management-notes.txt +++ b/doc/management-notes.txt @@ -795,6 +795,36 @@ Base64 encoded output of RSA_private_encrypt() (OpenSSL) or mbedtls_pk_sign() This capability is intended to allow the use of arbitrary cryptographic service providers with OpenVPN via the management interface. +COMMAND -- ecdsa-sig (OpenVPN 2.5 or higher) +------------------------------------------ +Same as rsa-sig but for EC keys: requires openssl 1.1 + +Provides support for external storage of the EC private key. Requires the +--management-external-key option. This option can be used instead of "key" +in client mode, and allows the client to run without the need to load the +actual private key. When the SSL protocol needs to perform a sign +operation, the data to be signed will be sent to the management interface +via a notification as follows: + +>ECDSA_SIGN:[BASE64_DATA] + +The management interface client should then create a DER encoded signature of +the (decoded) BASE64_DATA using the private key and return the SSL signature as +follows: + +ecdsa-sig +[BASE64_SIG_LINE] +. +. +. +END + +Base64 encoded output of ECDSA_sign() (OpenSSL) or mbedtls_pk_sign() +(mbed TLS) will provide a correct signature. + +This capability is intended to allow the use of arbitrary cryptographic +service providers with OpenVPN via the management interface. + COMMAND -- certificate (OpenVPN 2.4 or higher) ---------------------------------------------- Provides support for external storage of the certificate. Requires the