Java Key Store

Hi, I’ve recently purchased a signed SSL certificate. I’m trying to run a Java server, which imports keystores/truststores. I see that there are 3 main pieces to the SSL cert on the dreamhost site: certificate, private key, and intermediate certificate. I’ve been trying to create the keystore with the ‘keytool’, but no matter how I save the certificates or which command I use, it doesn’t seem to be working. Does anyone have any experience with this? Can (and would it help if) I get a different file format from dreamhost?

Thanks for any suggestions,