Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1713

How to deploy Spring boot 3 https project

$
0
0

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: info@cg2net.id    password: findingCg2    properties:      mail:        smtp:          auth: true          starttls:            enable: true          ssl:            protocols: TLSv1.2server:    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


Viewing all articles
Browse latest Browse all 1713

Trending Articles