scop / portecle

User friendly GUI application for creating, managing and examining keystores, keys, certificates, certificate requests, certificate revocation lists and more
http://portecle.sourceforge.net/
GNU General Public License v2.0
154 stars 47 forks source link

Import CA reply bug #24

Closed scop closed 7 years ago

scop commented 19 years ago

I found bug/problem in CA reply import (Portecle version 1.0). When i had imported CA reply and had tried to generate new certification request, i obtained this exception

net.sf.portecle.crypto.CryptoException: Could not generate a certification request. net.sf.portecle.crypto.X509CertUtil.generatePKCS10CSR(Unknown Source) net.sf.portecle.FPortecle.generateCsrSelectedEntry(Unknown Source) net.sf.portecle.FPortecle.access$4600(Unknown Source) net.sf.portecle.FPortecle$49.run(Unknown Source) java.lang.Thread.run(Unknown Source)

java.security.InvalidKeyException: Supplied key is not a RSAPrivateKey instance org.bouncycastle.jce.provider.JDKDigestSignature.engineInitSign(JDKDigestSignature.java:86) java.security.Signature.initSign(Unknown Source) org.bouncycastle.jce.PKCS10CertificationRequest.<init>(PKCS10CertificationRequest.java:235) org.bouncycastle.jce.PKCS10CertificationRequest.<init>(PKCS10CertificationRequest.java:132) net.sf.portecle.crypto.X509CertUtil.generatePKCS10CSR(Unknown Source)

Thanks for looking at it! net.sf.portecle.FPortecle.generateCsrSelectedEntry(Unknown Source) net.sf.portecle.FPortecle.access$4600(Unknown Source) net.sf.portecle.FPortecle$49.run(Unknown Source) java.lang.Thread.run(Unknown Source)

Reported by: dagi

scop commented 19 years ago

Original comment by: dagi

scop commented 19 years ago

Logged In: YES user_id=819913

Ufff, i found poblem...

I generated a key pair using the DSA algorithm (default), but my CA returns certificate with RSA signature algorithm.

Original comment by: dagi