https://github.com/arenadata/sslprops-spring-boot-starter
Spring Boot starter that exposes "ssl.props.*" configuration properties as JVM system properties.
https://github.com/arenadata/sslprops-spring-boot-starter
Last synced: about 1 month ago
JSON representation
Spring Boot starter that exposes "ssl.props.*" configuration properties as JVM system properties.
- Host: GitHub
- URL: https://github.com/arenadata/sslprops-spring-boot-starter
- Owner: arenadata
- License: apache-2.0
- Created: 2025-07-28T10:32:21.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-10-16T15:21:53.000Z (9 months ago)
- Last Synced: 2025-12-27T01:41:20.886Z (6 months ago)
- Language: Java
- Size: 24.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# SSL Props Spring Boot Starter
Spring Boot starter that exposes `ssl.props.*` configuration properties as JVM system properties.
## Description
This Spring Boot starter automatically converts application properties prefixed with `ssl.props.` into JVM system properties. This is particularly useful when working with SSL/TLS configurations that need to be accessible as system properties for various Java libraries and frameworks.
## Features
- Automatic conversion of `ssl.props.*` configuration properties to JVM system properties
- Spring Boot auto-configuration support
- Minimal dependencies and lightweight implementation
- Compatible with Spring Boot 3.5.x
## Requirements
- Java 17 or higher
- Spring Boot 3.5.x
## Installation
### Maven
Add the following dependency to your `pom.xml`:
```xml
io.arenadata.tools
sslprops-spring-boot-starter
1.0.1
```
### Gradle
Add the following to your `build.gradle`:
```groovy
implementation 'io.arenadata.tools:sslprops-spring-boot-starter:1.0.0'
```
## Examples
1. Base
```yaml
ssl:
props:
enabled: true
trust-store: ${ssl.props.trust-store:file:truststore.jks}
trust-store-type: ${ssl.props.trust-store-type:JKS}
trust-store-password: ${ssl.props.trust-store-password}
```
2. Bundle
```yaml
spring:
ssl:
bundle:
jks:
my-trust:
truststore:
location: truststore.p12
password: ${truststore.password}
keystore:
location: keystore.p12
password: ${keystore.password}
ssl:
props:
enabled: true
bundle: my-trust
```
## How to build:
```bash
# Clone the repository
git clone https://github.com/arenadata/sslprops-spring-boot-starter.git
cd sslprops-spring-boot-starter
# Build with Maven
./mvnw clean install
```