You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added STEP_CA_TRUST_RESTART environment variable support.
Updated docker-gen template to handle container restart option.
Updated documentation with new functionality and examples.
Enables applications requiring restart to properly load new
trust certificates when runtime certificate store updates
are insufficient for proper SSL/TLS functionality.
STEP_CA_TRUST_RESTART: "true" # Restart container after certificate installation
514
+
networks:
515
+
- step-ca-network
516
+
```
517
+
518
+
### Certificate Bundle Details
519
+
520
+
The trust certificate installation now includes both root and intermediate certificates:
521
+
522
+
- **Root Certificate**: `/home/step/certs/root_ca.crt` from step-ca container
523
+
- **Intermediate Certificate**: `/home/step/certs/intermediate_ca.crt` from step-ca container
524
+
- **Bundle**: Combined certificate file containing both certificates for complete PKI trust chain
525
+
526
+
### Container Restart Option
527
+
528
+
Some applications may require a restart to properly load new trust certificates. Use `STEP_CA_TRUST_RESTART=true` to automatically restart the container after certificate installation:
529
+
530
+
```yaml
531
+
services:
532
+
# Application that needs restart after certificate installation
533
+
secure-app:
534
+
image: myapp:latest
535
+
environment:
536
+
STEP_CA_TRUST: "true"
537
+
STEP_CA_TRUST_RESTART: "true" # Container will be restarted after certificate installation
511
538
networks:
512
539
- step-ca-network
513
540
```
@@ -529,8 +556,9 @@ services:
529
556
3. **OS Detection**: Automatically detects container operating system
530
557
4. **Certificate Retrieval**: Gets step-ca root and intermediate certificates bundle
531
558
5. **Package Installation**: Installs `ca-certificates` package if needed
532
-
6. **Trust Installation**: Copies certificate and updates trust store
533
-
7. **Verification**: Tests HTTPS connectivity to step-ca
559
+
6. **Trust Installation**: Copies certificate bundle and updates trust store
560
+
7. **Container Restart**: Optionally restarts container if `STEP_CA_TRUST_RESTART=true`
561
+
8. **Verification**: Tests HTTPS connectivity to step-ca
0 commit comments