I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
'use strict'; | |
function getStackOutputs(properties, callback) { | |
if (typeof properties.StackName === 'undefined') { | |
return callback(new Error('The StackName property was not specified.')); | |
} | |
let filter = []; | |
if (typeof properties.Filter !== 'undefined') { | |
if (!Array.isArray(properties.Filter)) { |
# install aws cli first and configure it with credentials and default region | |
# the script will iterate over all regions of AWS | |
for region in `aws ec2 describe-regions --output text | cut -f4` | |
do | |
echo -e "\nListing Instances in region:'$region'..." | |
aws ec2 describe-instances --query "Reservations[*].Instances[*].{IP:PublicIpAddress,ID:InstanceId,Type:InstanceType,State:State.Name,Name:Tags[0].Value}" --output=table --region $region | |
done |
'use strict'; | |
exports.handler = (event, context, callback) => { | |
// Get request and request headers | |
const request = event.Records[0].cf.request; | |
const headers = request.headers; | |
// Configure authentication | |
const authUser = 'user'; | |
const authPass = 'pass'; |
Parameters: | |
CanaryName: | |
Type: String | |
Default: my-canary | |
MaxLength: 21 | |
Resources: | |
CloudWatchSyntheticsRole: | |
Type: AWS::IAM::Role | |
Properties: |