使用java(zehon)通过FTPS协议传输文件时密钥库格式无效

使用java(zehon)通过FTPS协议传输文件时密钥库格式无效,java,ssl-certificate,ftps,Java,Ssl Certificate,Ftps,我是ftps新手。我正在使用zehon库使用ftps协议传输文件。我有一份经过验证的证书。以下是我的代码片段: FTPsClient ftpClient = new FTPsClient(host, port,username ,password ,false,keyStorePath,keyStorePass); // should it be true or false?? i.e. the isImplicit method int status = ftpClient.sendFile

我是ftps新手。我正在使用zehon库使用ftps协议传输文件。我有一份经过验证的证书。以下是我的代码片段:

FTPsClient ftpClient = new FTPsClient(host, port,username ,password ,false,keyStorePath,keyStorePass); // should it be true or false?? i.e. the isImplicit method 
int status = ftpClient.sendFile(filename, ftpsFolder);
我已经验证了用户名pwd、主机和其他详细信息。我唯一不确定的是密钥库文件,即证书文件。我已经提到密钥库路径为C:\keystorefile.crt。
运行此程序时,我获取的密钥库格式无效。那么,我的证书应该采用什么格式?zehon是否需要特定类型的证书?

我提供了一个证书文件,程序需要一个密钥库及其密码。创建密钥库并提供其路径解决了这个问题。以下是有关如何创建证书并将其放入密钥库的链接:

http://www.sslshopper.com/article-most-common-java-keytool-keystore-commands.html

我的当前证书已配置为apache可以接受