Skip to content

Commit 1e40091

Browse files
committed
Revert "fix(supermicro-ipmi-cert): include full certificate chain in upload"
This reverts commit efbd8d1.
1 parent efbd8d1 commit 1e40091

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

apps/supermicro-ipmi-cert/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.0
1+
0.1.0

apps/supermicro-ipmi-cert/supermicro_ipmi_cert.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,17 @@ def upload_cert(self, key_file, cert_file, token):
141141
+ b"\n"
142142
)
143143

144-
print(f"DEBUG: Certificate chain length: {len(cert_data)} bytes")
144+
# For Redfish, only send the server certificate, not the full chain
145+
substr = b"-----END CERTIFICATE-----\n"
146+
cert_only = cert_data.split(substr)[0] + substr
147+
148+
print(f"DEBUG: Certificate data length: {len(cert_data)} bytes")
149+
print(f"DEBUG: Server cert only length: {len(cert_only)} bytes")
145150
print(f"DEBUG: Key data length: {len(key_data)} bytes")
146151

147152
# Use dict format for multipart file upload
148153
files_to_upload = {
149-
"cert_file": ("cert.pem", cert_data, "application/octet-stream"),
154+
"cert_file": ("cert.pem", cert_only, "application/octet-stream"),
150155
"key_file": ("key.pem", key_data, "application/octet-stream"),
151156
}
152157

0 commit comments

Comments
 (0)