#!/bin/bash date aws s3 cp s3://S3BUCKETNAME/DOMAIN.TLD.p12 /root/ pk12util -i /root/DOMAIN.TLD.p12 -d /etc/httpd/alias/ -W $(aws ssm get-parameter --name "/DOMAIN.TLD/p12password" --with-decryption --output text --query 'Parameter.Value') systemctl restart httpd date