Skip to content

Commit 3dd9ea1

Browse files
committed
remove tab, add comment with key format information
1 parent 42007c9 commit 3dd9ea1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gcp/gcpEnroll.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Import-Module $ScriptDir\..\powershellModules\kf_logging.psm1
1111

1212
# Specify the API URL base.
1313
# Note that when we call the API we use Windows Auth:
14-
# 1.) Ensure that Windows Authentication is enabled for the KeyfactorAPI endpoint (DefaultWebsite > KeyfactorAPI) in IIS
14+
# 1.) Ensure that Windows Authentication is enabled for the KeyfactorAPI endpoint (DefaultWebsite > KeyfactorAPI) in IIS
1515
# 2.) For normal operation the Keyfactor Service (Timer Service) account is used -- Make sure this account has the appropriate Keyfactor & AD rights
1616
# 3.) For testing from the portal, the Application Pool account is used -- Make sure this account has the appropriate Keyfactor & AD rights
1717
#
@@ -115,6 +115,7 @@ try {
115115
Add-KFInfoLog $outputLog $logFile "gcp access token: $token"
116116

117117
$gURL = "https://cloudiot.googleapis.com/v1/projects/$gProjectId/locations/$gProjectLocation/registries/$gProjectRegistry/devices"
118+
#Double check the format to match the template used available options: RSA_X509_PEM, RSA_PEM, ES256_PEM or ES256_X509_PEM
118119
$pubKeyObj = @{"format" = "ES256_X509_PEM"; "key" = $unencoded }
119120
$credObj = @{"expirationTime" = $expiryDate; "publicKey" = $pubKeyObj }
120121
$gBodyObj = @{"id" = $clientMachine; "credentials" = $credObj; "blocked" = $false }

0 commit comments

Comments
 (0)