AWS Security ChangesHomeSearch

AWS IAM documentation change

Service: IAM · 2025-06-25 · Documentation low

File: IAM/latest/UserGuide/iam_example_iam_UploadServerCertificate_section.md

Summary

Added PowerShell V5 example for uploading server certificates with emphasis on using -Raw parameter for PEM file processing

Security assessment

The change provides operational guidance for certificate management but does not address security vulnerabilities or explicitly document security controls.

Diff

diff --git a/IAM/latest/UserGuide/iam_example_iam_UploadServerCertificate_section.md b/IAM/latest/UserGuide/iam_example_iam_UploadServerCertificate_section.md
index e92997756..a8118b567 100644
--- a//IAM/latest/UserGuide/iam_example_iam_UploadServerCertificate_section.md
+++ b//IAM/latest/UserGuide/iam_example_iam_UploadServerCertificate_section.md
@@ -141,0 +142,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)_. 
+
+
+
+