Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activate SSL via Lets encrypt #1081

Open
Atoxien opened this issue Apr 17, 2024 · 1 comment
Open

Activate SSL via Lets encrypt #1081

Atoxien opened this issue Apr 17, 2024 · 1 comment

Comments

@Atoxien
Copy link

Atoxien commented Apr 17, 2024

Dear community, dear creator,

I use the PDF tool with access to a public server. But how can I install SSL via Lets Encrypt? Don't want to use a self-signed certificate as it would be a Lets Encrypt certificate.

Is there a way to integrate this and make it only accessible via https?

LG Atoxien

@Ludy87
Copy link
Contributor

Ludy87 commented Apr 27, 2024

Import Certificate into a Keystore:

You need to convert the PEM-formatted certificate and private key into a PKCS12 keystore. This can be done with OpenSSL:

openssl pkcs12 -export -in /etc/letsencrypt/live/yourdomain.com/fullchain.pem -inkey /etc/letsencrypt/live/yourdomain.com/privkey.pem -out keystore.p12 -name yourdomain -CAfile /etc/letsencrypt/live/yourdomain.com/chain.pem -caname root

Configure Spring Boot:

Enter the path and password information in your application.properties:

# Server port to run the application on HTTPS
server.port=8443

# SSL key-store configuration
server.ssl.key-store=classpath:keystore.p12
server.ssl.key-store-password=yourkeystorepassword
server.ssl.key-store-type=PKCS12
server.ssl.key-alias=yourdomain

# Require SSL
server.ssl.enabled=true

Replace yourkeystorepassword with your keystore password and yourdomain with the alias you used during the export.

I'm not sure if it will work, but you can test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants