AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation medium

File: code-library/latest/ug/iam_example_iam_UploadServerCertificate_section.md

Summary

Added PowerShell V5 example for uploading server certificates with certificate handling guidance

Security assessment

While certificate management is security-related, this change documents proper operational procedures rather than addressing vulnerabilities. The -Raw parameter guidance helps prevent certificate handling errors but doesn't mitigate specific security flaws.

Diff

diff --git a/code-library/latest/ug/iam_example_iam_UploadServerCertificate_section.md b/code-library/latest/ug/iam_example_iam_UploadServerCertificate_section.md
index ab599828d..af0196908 100644
--- a//code-library/latest/ug/iam_example_iam_UploadServerCertificate_section.md
+++ b//code-library/latest/ug/iam_example_iam_UploadServerCertificate_section.md
@@ -143,0 +144,24 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example uploads a new server certificate to the IAM account. The files containing the certificate body, the private key, and (optionally) the certificate chain must all be PEM encoded. Note that the parameters require the actual content of the files rather than the file names. You must use the`-Raw` switch parameter to successfully process the file contents. **
+    
+    
+    Publish-IAMServerCertificate -ServerCertificateName MyTestCert -CertificateBody (Get-Content -Raw server.crt) -PrivateKey (Get-Content -Raw server.key)
+    
+
+**Output:**
+    
+    
+    Arn                   : arn:aws:iam::123456789012:server-certificate/MyTestCert
+    Expiration            : 1/14/2018 9:52:36 AM
+    Path                  : /
+    ServerCertificateId   : ASCAJIEXAMPLE7J7HQZYW
+    ServerCertificateName : MyTestCert
+    UploadDate            : 4/21/2015 11:14:16 AM
+
+  * For API details, see [UploadServerCertificate](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+