An open API service indexing awesome lists of open source software.

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.

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
```