|
|
@@ -54,7 +54,7 @@ public class HttpConnector implements InitializingBean {
|
|
|
|
|
|
@Override
|
|
|
public void afterPropertiesSet() throws Exception {
|
|
|
- Path temp = Paths.get(HttpConnector.class.getClassLoader().getResource("").getPath().concat(keyStorePath));
|
|
|
+ Path temp = Paths.get(new File(HttpConnector.class.getClassLoader().getResource("").getPath().concat(keyStorePath)).getAbsolutePath());
|
|
|
Files.copy(HttpClient.class.getClassLoader().getResourceAsStream(keyStorePath), temp, StandardCopyOption.REPLACE_EXISTING);
|
|
|
keyStorePath = temp.toFile().getPath();
|
|
|
trustStorePath = keyStorePath;
|