From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id DDDE919A02A8 for ; Sun, 13 Sep 2015 11:57:53 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 0EA1EB5D9A1 for ; Sun, 13 Sep 2015 12:19:56 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 556B397A820 for ; Sun, 13 Sep 2015 12:19:57 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id DB96995241E for ; Sun, 13 Sep 2015 12:19:55 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id BC871120717; Sun, 13 Sep 2015 12:19:55 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id BDC4C1206F0 for ; Sun, 13 Sep 2015 12:19:52 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=hbWtaQCqGH962CzEVUdjbnEYZMk=; b=dlRtLdO9rvs7UOjvbS 29v6Xcpy25GJ5jzm3mYgE92m3YQ8uFBfMmWOtVXHgEHvaJ+5zPVpfwEGLVIDbSfE 2vnk5cu5vUWi6Y1g29m3tAAjZwIExqxilYK6Yg8mYYhcSGOZa3+c2WVJM5eSXnx9 OJub83X7hYbGFxM+xqLJqXId8= Received: by filter0414p1mdw1.sendgrid.net with SMTP id filter0414p1mdw1.3713.55F4EB561D 2015-09-13 03:19:50.499478913 +0000 UTC Received: from herokuapp.com (ec2-54-144-111-40.compute-1.amazonaws.com [54.144.111.40]) by ismtpd0002p1iad1.sendgrid.net (SG) with ESMTP id _VldAnI2RimVPKvAfDyosQ Sun, 13 Sep 2015 03:19:50.551 +0000 (UTC) Date: Sun, 13 Sep 2015 03:19:50 +0000 From: zzak@ruby-lang.org To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 45375 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 5600 X-Redmine-Issue-Author: scaligo X-Redmine-Issue-Assignee: X-Redmine-Sender: zzak X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS5jwPhPDgqA5xMIMVSpfKPqnAQc5mXxjhB/24 /O6V7hOeZ6Ss2YDc+xUvCyNbzmPNJZU26kpbg7pTFpyWmtt9HdjWMW/AWMr9jWMS0ZEEAeHJ+7lTu/ Bn9htxaxsybGKmuGhAqYVwH/luvjuuXXG7Yo X-ML-Name: ruby-core X-Mail-Count: 70768 Subject: [ruby-core:70768] [Ruby trunk - Bug #5600] OpenSSL::X509::Request can't sign() an OpenSSL::PKey::EC X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #5600 has been updated by Zachary Scott. Assignee changed from Martin Bosslet to openssl ---------------------------------------- Bug #5600: OpenSSL::X509::Request can't sign() an OpenSSL::PKey::EC https://bugs.ruby-lang.org/issues/5600#change-54147 * Author: Steve Caligo * Status: Assigned * Priority: Normal * Assignee: openssl * ruby -v: ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux] * Backport: ---------------------------------------- Unlike the PKey::DSA and PKey::RSA classes, PKey::EC provides a private_key?() rather than private?() method and is thus incompatible with the other OpenSSL classes that rely on them, i.e. it makes impossible to generate a certificate signing request: key = OpenSSL::PKey::EC.new('secp521r1') key.generate_key req = OpenSSL::X509::Request.new req.public_key = key req.subject = OpenSSL::X509::Name.parse('CN=whatever') req.sign(key, OpenSSL::Digest::SHA384.new) which produces the error: in `sign': undefined method `private?' for # (NoMethodError) ossl_pkey_ec.c should either: - rb_define_method() the missing private? and public? methods - rename public_key? to public? and private_key? to private? Judging by the source code, this should be present in branch 1.8 as well. -- https://bugs.ruby-lang.org/