aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/me/imsonmia/epqapi/EpqapiApplication.java4
-rw-r--r--src/main/resources/application.properties8
-rw-r--r--src/main/resources/key/cert.p12bin0 -> 4403 bytes
3 files changed, 12 insertions, 0 deletions
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
--- /dev/null
+++ b/src/main/resources/key/cert.p12
Binary files differ