Closed scop closed 7 years ago
Original comment by: dagi
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
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