[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[iaik-ssl] "Unknown certificate type!" in addServerCredentials
Hi!
We are trying to run IAIK SSL 3.0 on top of a 3rd-party chipcard-based
JCE-implementation.
Out intention is to have chipcard-based, secure RMI. This is (in short) what
we're doing now:
Security.insertProviderAt(new OurChipcardJCEProvider() , 1);
SecurityProvider.setSecurityProvider(new
SecurityProvider("OurJCEProviderName"));
:
clientContext = new SSLClientContext();
serverContext = new SSLServerContext();
:
setupClientContext(clientContext); // uses addClientCredentials,
setEnabledCipherSuites ...
setupServerContext(serverContext); // also calls
addServerCredentials
:
sslRMISocketFactory = new SSLRMISocketFactory();
sslRMISocketFactory.setClientContext(clientContext);
sslRMISocketFactory.setServerContext(serverContext);
:
RMISocketFactory.setSocketFactory(sslRMISocketFactory);
:
When calling serverContext.addServerCredentials(encryptChain, privateKey),
we get an
"Unknown certificate type!" Exception. The addClientCredentials call before
works.
Our question: What exactly leads to this error?
The type String returned by the X509Certificate objects delivered by our
JCE-implementation is "X.509".
We're in contact with the developers of the JCE stuff, but what should we
tell them is wrong with their certificates?
Regards, Kolja
--
Mailinglist-archive at http://jcewww.iaik.at/mailarchive/iaik-ssl/sslthreads.html
To unsubscribe send an email to listserv@iaik.at with the folowing content: UNSUBSCRIBE iaik-ssl