In case you require the keys and certificates within a Java keystore,
you may either
	Import the private key and certificate signed by the CA, using Java 6's enhanced keytool.
		After creating the key and the certificate with OpenSSL, use OpenSSL to create a PKCS #12 key store:
			openssl pkcs12 -export -in cert.pem -inkey key.pem > server.p12
		Then convert this store into a Java key store:
			keytool -importkeystore -srckeystore server.p12 -destkeystore server.jks -srcstoretype pkcs12
		Now use server.jks in your SSL-enable server, which contains the certificate and the private key.
or instead
	Generate your keys and CSRs using Java keytool right away.
		Please refer to the manual of the Java keytool and use the generated configuration files as templates for DN creation in your certificates.