I’ve successfully setup https on project using springboot 3 on localhost.
this is my application.yaml :
spring:
config:
activate:
on-profile: development
application:
name: meteraindo
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.MySQLDialect
show-sql: true
hibernate:
ddl-auto: update
datasource:
username: root
password: 1ron_man
url: jdbc:mysql://localhost:3306/meterai
driver-class-name: com.mysql.cj.jdbc.Driver
servlet:
multipart:
max-file-size: 50MB
max-request-size: 50MB
mail:
host: smtp.gmail.com
port: 587
username: [email protected]
password: findingCg2
properties:
mail:
smtp:
auth: true
starttls:
enable: true
ssl:
protocols: TLSv1.2
server:
port: 8443
ssl:
**key-store: src/main/resources/meteraindo.p12**
key-store-type: PKCS12
key-store-password: padamuNegr1
key-alias: meteraindo
---
I can deploy it find if its not set as https. i just do mvn clean install and upload the war file.
My question is how to deploy it to my live tomcat server? When i do mvn install does springboot incorporate .p12 into war file? or do i need to upload it manually to my server?
i also uncomment this part on “server.xml”
<Connector port="8443" protocol="org.apache.coyote.http11.Http11AprPr>
maxThreads="150" SSLEnabled="true" >
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol>
<SSLHostConfig>
<Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
certificateFile="conf/localhost-rsa-cert.pem"
certificateChainFile="conf/localhost-rsa-chain.p>
type="RSA" />
</SSLHostConfig>
</Connector>
please guide me how to set it up to my server.
Thanks in advance
1