openssl genrsa –out RootCA.key 4096 - Private
openssl req –new –x509 –days 1826 –key RootCA.key –out RootCA.crt -outform PEM
{ | |
"if" : { | |
<condition> | <logical operator> | |
}, | |
"then" : { | |
"effect" : "deny | audit | append" | |
} | |
} |
{ | |
"if" : { | |
"not" : { | |
"field" : "location", | |
"in" : ["eastus" , "centralus"] | |
} | |
}, | |
"then" : { | |
"effect" : "allow" | |
} |
{ | |
"if": { | |
"not" : { | |
"field" : "tags", | |
"containsKey" : "dept" | |
} | |
}, | |
"then" : { | |
"effect" : "deny" | |
} |
#!/bin/bash | |
echo "Installing Azure IoT Edge on Raspbian Stretch" | |
curl https://packages.microsoft.com/config/debian/stretch/multiarch/prod.list > ./microsoft-prod.list | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
sudo cp ./microsoft.gpg /etc/apt/trusted.gpg.d/ | |
echo "Installing Container Runtime for Azure IoT Edge on Raspbian Stretch" | |
sudo apt-get update | |
sudo apt-get install moby-engine | |
sudo apt-get install moby-cli |
#!/bin/bash | |
echo "Starting the Azure IoT Edge Installation" | |
#apt-get repository configuration | |
curl https://packages.microsoft.com/config/ubuntu/18.04/multiarch/prod.list > ./microsoft-prod.list | |
sudo cp ./microsoft-prod.list /etc/apt/sources.list.d/ | |
#Install Microsoft GPG public key | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
sudo cp ./microsoft.gpg /etc/apt/trusted.gpg.d/ |
#!/bin/bash | |
echo "It works" |
#!/bin/bash | |
for i in {1..5} | |
do | |
echo "creating $i certificate stared" | |
step ca certificate sampledev$i sampledev$i.crt sampledev$i.key --provisioner-password-file password.txt -f | |
openssl pkcs12 -export -out sampledev$i.pfx -inkey sampledev$i.key -in sampledev$i.crt -password pass:yourpassword | |
echo "creating $i certificate completed" | |
done |