diff --git a/pom.xml b/pom.xml index 104015f..14b8bb3 100644 --- a/pom.xml +++ b/pom.xml @@ -50,7 +50,19 @@ org.springframework.boot spring-boot-starter-websocket - + + + org.apache.httpcomponents + httpcore + 4.4.11 + + + + org.apache.httpcomponents + httpclient + 4.5.9 + + diff --git a/src/main/java/me/imsonmia/epqapi/EpqapiApplication.java b/src/main/java/me/imsonmia/epqapi/EpqapiApplication.java index d4ef329..4896604 100644 --- a/src/main/java/me/imsonmia/epqapi/EpqapiApplication.java +++ b/src/main/java/me/imsonmia/epqapi/EpqapiApplication.java @@ -1,10 +1,14 @@ package me.imsonmia.epqapi; +import javax.net.ssl.SSLContext; + +import org.apache.tomcat.jni.SSL; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; +import org.springframework.web.client.RestTemplate; import org.springframework.web.servlet.config.annotation.CorsRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 11ba37c..8118b59 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -13,3 +13,11 @@ spring.jpa.show-sql: true # validate for semi-production # none for serious prod scenarios spring.jpa.hibernate.ddl-auto=update + +server.ssl.key-store-type=PKCS12 +server.ssl.key-store=classpath:key/cert.p12 +server.ssl.key-store-password=epqchat +server.ssl.enabled=true + +trust.store=classpath:key/cert.p12 +trust.store.password=epqchat \ No newline at end of file diff --git a/src/main/resources/key/cert.p12 b/src/main/resources/key/cert.p12 new file mode 100644 index 0000000..27bf3b9 Binary files /dev/null and b/src/main/resources/key/cert.p12 differ