Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix: remove leading space from license public_key.pem (#25339)

milan-berrie0a578fbdda7
diff --git a/litellm/proxy/auth/public_key.pem b/litellm/proxy/auth/public_key.pem
index 0962794ac91..437befbf08f 100644
--- a/litellm/proxy/auth/public_key.pem
+++ b/litellm/proxy/auth/public_key.pem
@@ -1,4 +1,4 @@
- -----BEGIN PUBLIC KEY-----
+-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwcNBabWBZzrDhFAuA4Fh
FhIcA3rF7vrLb8+1yhF2U62AghQp9nStyuJRjxMUuldWgJ1yRJ2s7UffVw5r8DeA
dqXPD+w+3LCNwqJGaIKN08QGJXNArM3QtMaN0RTzAyQ4iibN1r6609W5muK9wGp0
diff --git a/tests/test_litellm/proxy/auth/test_litellm_license.py b/tests/test_litellm/proxy/auth/test_litellm_license.py
index dfb17d77f71..687f3eb4017 100644
--- a/tests/test_litellm/proxy/auth/test_litellm_license.py
+++ b/tests/test_litellm/proxy/auth/test_litellm_license.py
@@ -11,6 +11,14 @@ sys.path.insert(
from litellm.proxy.auth.litellm_license import LicenseCheck
+def test_read_public_key_loads_successfully():
+ """Ensure public_key.pem is valid PEM with no leading whitespace."""
+ license_check = LicenseCheck()
+ assert license_check.public_key is not None, (
+ "public_key.pem could not be loaded — check for leading whitespace or malformed PEM header"
+ )
+
+
def test_is_over_limit():
license_check = LicenseCheck()
license_check.airgapped_license_data = {"max_users": 100}