Return-Path: Delivered-To: apmail-xml-security-dev-archive@www.apache.org Received: (qmail 9223 invoked from network); 21 Mar 2008 16:37:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Mar 2008 16:37:59 -0000 Received: (qmail 67051 invoked by uid 500); 21 Mar 2008 16:37:56 -0000 Delivered-To: apmail-xml-security-dev-archive@xml.apache.org Received: (qmail 67028 invoked by uid 500); 21 Mar 2008 16:37:56 -0000 Mailing-List: contact security-dev-help@xml.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: security-dev@xml.apache.org List-Id: Delivered-To: mailing list security-dev@xml.apache.org Received: (qmail 66989 invoked by uid 99); 21 Mar 2008 16:37:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2008 09:37:56 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of flyerhzm@gmail.com designates 209.85.128.190 as permitted sender) Received: from [209.85.128.190] (HELO fk-out-0910.google.com) (209.85.128.190) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Mar 2008 16:37:14 +0000 Received: by fk-out-0910.google.com with SMTP id 22so1839293fkq.6 for ; Fri, 21 Mar 2008 09:37:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=PxWkL2XBK1kODwQ2KEdaffPGrwn7oeKBEk5mTUaiCbQ=; b=sroZwpp22PjwjpYlQUW3r/1h2s0b3EzOvJo9Nxn2jzJJ8TvBTkQD8n89JAkf7F5BQ4H/kRbe9FUxAybPl1AqtzFJ3uzmIeSsWyc4H0Ax9WCS3lF88riPiP0eDJV0NF2VFWp4p7+gG90xe1oxPDO3feVuiONLyJWD691TXx054yU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type; b=SIkfJgvZo36Etypo9vyYdWjBZ12rpApz0hYXjKsFd8u3zUPaF4wg5MV9GGx0JVJciaao9FGSihEB5MWUWPnHUjhAu0P7zUEkC8Kk1YNmpShLNnRBxF8XYkbw1/LeMVfxnpkdSqdRYboohcR4U+I7SXH+0B9/XHFYhhVns3UHN9Q= Received: by 10.78.171.20 with SMTP id t20mr9605820hue.6.1206117444054; Fri, 21 Mar 2008 09:37:24 -0700 (PDT) Received: by 10.78.32.13 with HTTP; Fri, 21 Mar 2008 09:37:24 -0700 (PDT) Message-ID: Date: Sat, 22 Mar 2008 00:37:24 +0800 From: "huang zhimin" To: security-dev@xml.apache.org Subject: encrypt with pkcs12 private key MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2162_14273206.1206117444047" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_2162_14273206.1206117444047 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I use BouncyCastleProvider to get a private key from a p12 file, when i use the private key to encrypt xml document, i get the exception as follows: org.apache.xml.security.signature.XMLSignatureException: No installed provider supports this key: org.bouncycastle.jce.provider.JCERSAPrivateCrtKey Original Exception was org.apache.xml.security.signature.XMLSignatureException: No installed provider supports this key: org.bouncycastle.jce.provider.JCERSAPrivateCrtKey Original Exception was java.security.InvalidKeyException: No installed provider supports this key: org.bouncycastle.jce.provider.JCERSAPrivateCrtKey does it mean that xml security do not support pkcs12 keystore? -- My msn spaces: http://flyerhzm.spaces.live.com ------=_Part_2162_14273206.1206117444047 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I use BouncyCastleProvider to get a private key from a p12 file, when i use the private key to encrypt xml document, i get the exception as follows:

org.apache.xml.security.signature.XMLSignatureException: No installed provider supports this key: org.bouncycastle.jce.provider.JCERSAPrivateCrtKey
Original Exception was org.apache.xml.security.signature.XMLSignatureException: No installed provider supports this key: org.bouncycastle.jce.provider.JCERSAPrivateCrtKey
Original Exception was java.security.InvalidKeyException: No installed provider supports this key: org.bouncycastle.jce.provider.JCERSAPrivateCrtKey

does it mean that xml security do not support pkcs12 keystore?

--
My msn spaces: http://flyerhzm.spaces.live.com ------=_Part_2162_14273206.1206117444047--