Caused by: java.security.cert.CertificateException: Could not parse certificate: java.io.IOException: Empty input
at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:104)
at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:339)
at org.ldaptive.ssl.X509CertificatesCredentialReader.read(X509CertificatesCredentialReader.java:45)
at org.ldaptive.ssl.X509CertificatesCredentialReader.read(X509CertificatesCredentialReader.java:31)
This is the configuration I'm using:
from deployerConfigContext.xml
<bean id="sslConfig" class="org.ldaptive.ssl.SslConfig">
<property name="credentialConfig">
<bean class="org.ldaptive.ssl.X509CredentialConfig"
p:trustCertificates="${ldap.trustedCert}" />
</property>
</bean>
from cas.properties (included is the link to the documentation I'm following)
# Putting this in based on example at http://jasig.github.io/cas/4.1.x/installation/LDAP-Authentication.html (LDAP Requiring Authentication)
#ldap.trustedCert=file:///c:/java/jre7/lib/security/cacerts
ldap.trustedCert=file:///c:/Program Files/Java/jdk1.7.0_21/jre/lib/security/cacerts
Don't know if I mentioned this is my first email, but I used the same configuration to connect to our test ldap server using ldaps and that worked. I'm now configuring for our production ldap server using ldaps and I get the error. I've imported root and intermediate certificates for both test and production ldap servers into the same cacerts files and did not have this problem when connecting to the test ldap server. Thanks in advance for any advice.
----
Allan Axon
Delivery Services, Enterprise Applications and GIS Manager
Information Technology Services
NC Department of Environmental Quality
----
Email correspondence to and from this address is subject to the North Carolina Public Records Law and may be disclosed to third parties unless the content is exempt by statute or other regulation.
--
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
cas-user+u...@apereo.org.
Visit this group at
https://groups.google.com/a/apereo.org/group/cas-user/.
This is the configuration I'm using:
from deployerConfigContext.xml
<bean id="sslConfig" class="org.ldaptive.ssl.SslConfig">
<property name="credentialConfig">
<bean class="org.ldaptive.ssl.X509CredentialConfig"
p:trustCertificates="${ldap.trustedCert}" />
</property>
</bean>
from cas.properties (included is the link to the documentation I'm following)
# Putting this in based on example at http://jasig.github.io/cas/4.1.x/installation/LDAP-Authentication.html (LDAP Requiring Authentication)
#ldap.trustedCert=file:///c:/java/jre7/lib/security/cacerts
ldap.trustedCert=file:///c:/Program Files/Java/jdk1.7.0_21/jre/lib/security/cacerts