CI: Fix openssl hang by avoiding pipe to head
- Use -subject -dates -noout instead of -text -noout | head -20 - Remove --cacert from curl since cert is now in system store
This commit is contained in:
@@ -27,9 +27,9 @@ jobs:
|
||||
echo "Downloading FreeIPA CA certificate..."
|
||||
curl -fsSL -o /tmp/ipa-ca.crt https://ipa.kindred.internal/ipa/config/ca.crt
|
||||
|
||||
# Verify the certificate is valid
|
||||
# Verify the certificate is valid (just show subject and dates)
|
||||
echo "Verifying certificate..."
|
||||
openssl x509 -in /tmp/ipa-ca.crt -text -noout | head -20
|
||||
openssl x509 -in /tmp/ipa-ca.crt -subject -dates -noout
|
||||
|
||||
# Install to system trust store
|
||||
sudo cp /tmp/ipa-ca.crt /usr/local/share/ca-certificates/ipa-ca.crt
|
||||
@@ -40,7 +40,7 @@ jobs:
|
||||
|
||||
# Verify SSL connection to Gitea works
|
||||
echo "Testing SSL connection to Gitea..."
|
||||
curl -fsSL --cacert /tmp/ipa-ca.crt https://gitea.kindred.internal/api/v1/version
|
||||
curl -fsSL https://gitea.kindred.internal/api/v1/version
|
||||
echo ""
|
||||
echo "SSL certificate setup complete"
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@ jobs:
|
||||
echo "Downloading FreeIPA CA certificate..."
|
||||
curl -fsSL -o /tmp/ipa-ca.crt https://ipa.kindred.internal/ipa/config/ca.crt
|
||||
|
||||
# Verify the certificate is valid
|
||||
# Verify the certificate is valid (just show subject and dates)
|
||||
echo "Verifying certificate..."
|
||||
openssl x509 -in /tmp/ipa-ca.crt -text -noout | head -20
|
||||
openssl x509 -in /tmp/ipa-ca.crt -subject -dates -noout
|
||||
|
||||
# Install to system trust store
|
||||
sudo cp /tmp/ipa-ca.crt /usr/local/share/ca-certificates/ipa-ca.crt
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
|
||||
# Verify SSL connection to Gitea works
|
||||
echo "Testing SSL connection to Gitea..."
|
||||
curl -fsSL --cacert /tmp/ipa-ca.crt https://gitea.kindred.internal/api/v1/version
|
||||
curl -fsSL https://gitea.kindred.internal/api/v1/version
|
||||
echo ""
|
||||
echo "SSL certificate setup complete"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user