mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2025-12-13 18:01:15 +00:00
10 lines
No EOL
360 B
Bash
Executable file
10 lines
No EOL
360 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Generate self-signed SSL certificate for localhost with 1-day expiry
|
|
openssl req -x509 -nodes -days 1 -newkey rsa:2048 \
|
|
-keyout nginx.key \
|
|
-out nginx.crt \
|
|
-subj "/C=US/ST=CA/L=Local/O=Test/CN=localhost" \
|
|
-addext "subjectAltName=DNS:localhost,IP:127.0.0.1"
|
|
|
|
echo "SSL certificates generated with 1-day expiry: nginx.crt and nginx.key" |