[Date Prev][Date Next]
Re: DER Encoding Issue
Did you imported your DER file into a keystore and then specified the
location of keystore .
you need to do the following things:-
1) Import your DER file into a Keystore as follows
Use the KeyTool from JDK to create a KeyStore file. If c:\test\ssl.der
is the certificate filename and c:\test\sslkey.keystore is the KeyStore
filename, the command would be as follows:
keytool -import -file c:\test\ssl.der -keystore c:\test\sslkey.keystore
This command prompts you for a password to use with the KeyStore file.
2) Then you have to specify the location of the keystore either at
command prompt as follows:-
or specify it in your java program as follows:-
Refer to sample program at
>>> "Fernando T. Martins Mano" <email@example.com> 9/1/2003
7:47:04 PM >>>
I m trying to use a Java LDAP library to connect (via TLS/SSL) to an
OpenLDAP server. It is required in this library that the certificates
are in DER format, but my certificates were created in PEM. I used
tools (openssl x509 stuff and this Java library classes tools) to
convert these PEM certificates to DER. It occurs successfully. BUT,
after specifying in 'user'/.ldaprc the DER files, I get an error
trying to start slapd:
TLS: could not load verify locations (file:`/etc/ssl/ca.der',dir:`').
main: TLS init def ctx failed: -1
slapd shutdown: freeing system resources.
connections_destroy: nothing to destroy.
I'm using OpenLDAP 2.1.21 with OpenSSL 0.9.7b and Phaos SSLava Java
How can I solve this problem?
Fernando Martins Mano