Google Cloud Platform 密钥到期日期问题

问题描述

当我在 VMWare Airwatch 中使用 G-Suite 进行 Android emm 注册时,上传为 Google Cloud Platform 中的服务帐户创建的密钥时,出现错误加减值结果在无法表示的 DateTime 中。参数名称:value"。

在 Google Cloud Platform 中,密钥到期日期是自动10000 年 1 月 1 日。我该如何解决这个问题,或者还有其他方法可以注册 G-Suite?

Airwatch 接受 P12 密钥文件,而不是 JSON。我在将 P12 文件上传到 Airwatch 时遇到了这个问题。

解决方法

按照本指南了解如何在 service account 中创建 JSON 密钥。

下面的命令显示了到期日期 expiration show

link = "https://www.zillow.com/arlington-va/2_p/?searchQueryState=%7B%22pagination%22%3A%7B%22currentPage%22%3A2%7D%2C%22usersSearchTerm%22%3A%22arlington%2C%20virginia%22%2C%22mapBounds%22%3A%7B%22west%22%3A-77.46492611914063%2C%22east%22%3A-76.73708188085938%2C%22south%22%3A38.64364888623124%2C%22north%22%3A39.117234332841704%7D%2C%22regionSelection%22%3A%5B%7B%22regionId%22%3A30258%2C%22regionType%22%3A6%7D%5D%2C%22isMapVisible%22%3Atrue%2C%22filterState%22%3A%7B%22ah%22%3A%7B%22value%22%3Atrue%7D%2C%22sort%22%3A%7B%22value%22%3A%22globalrelevanceex%22%7D%7D%2C%22isListVisible%22%3Atrue%7D"


page = read_html(link)

bed =  page %>% html_nodes(".list-card-details li:nth-child(1)") %>% html_text()
bed =  page %>% html_nodes(".list-card-details li:nth-child(1)") %>% html_text()
bath = page %>% html_nodes(".list-card-details li:nth-child(2)") %>% html_text()
sqfoot = page %>% html_nodes(".list-card-details li:nth-child(3)") %>% html_text()
price = page %>% html_nodes(".list-card-price") %>% html_text()
marketime= page %>% html_nodes(".list-card-variable-text") %>% html_text()

houses = data.frame(address,bed,bath,sqfoot,price,marketime) %>%
mutate(bed = as.numeric(substring(bed,1,1)),bath = substring(bath,1),sqfoot = 
gsub(",","",sqfoot),price = gsub(",price))

houses <- mutate(houses,sqfoot = as.numeric(gsub(" sqft",houses$sqfoot)),price = 
as.numeric(substring(price,2,nchar(houses$price))))

此外,如果您使用的是用户管理的服务帐户,我们可以说永远no expiration date

我建议您使用用户管理的密钥并创建一个新密钥。创建新密钥可能会在 9999 年 12 月 31 日到期,我希望这对您的用例有用。