* @return
*/
private boolean checkHttpsConfig(){
if(StringUtil.isNotEmpty(hettyConfig.getKeyStorePath())){
if(!FileUtil.getFile(hettyConfig.getKeyStorePath()).exists()){
throw new HettyException("we can't find the file which you configure:[ssl.keystore.file]");
}
}else if(StringUtil.isNotEmpty(hettyConfig.getCertificateKeyFile()) &&
StringUtil.isNotEmpty(hettyConfig.getCertificateFile())){
if(!FileUtil.getFile(hettyConfig.getCertificateKeyFile()).exists()){
throw new HettyException("we can't find the file which you configure:[ssl.certificate.key.file]");
}
if(!FileUtil.getFile(hettyConfig.getCertificateFile()).exists()){
throw new HettyException("we can't find the file which you configure:[ssl.certificate.file]");
}
}else{
throw new HettyException("please check your ssl's config.");
}
return true;
}