File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments