我需要使用 PowerShell 脚本来选择“证书模板名称”作为“机器”的证书。在 certmgr.msc 中,它具有值为“计算机”的“证书模板”。在详细信息中,相同的“证书模板名称”为“机器”。
如何在 PowerShell 脚本中使用这些值中的任何一个?
到目前为止,我有:
get-childitem cert:\localmachine\my | where-object {$_.}
Run Code Online (Sandbox Code Playgroud)
我已经尝试了智能感知加载的几乎所有方法,但无法找到满足我需求的任何方法。
谢谢你,
我的 Stripe 付款显示在我的仪表板上,但其状态为“不完整”,并且将鼠标悬停在上面会显示提示“客户尚未输入其付款方式”。我认为我在 session.create() 方法中考虑了付款方式。
我的 Angular 组件创建一个 StripeCheckout 并将会话数据发送到我的 API。然后API将其包含在对浏览器的响应中(我的第一次尝试是使用这个sessionId来重定向到结账,但我选择了这个,因为它更流畅)。
Angular/TS StripeCheckout 和处理程序:
let headers = new Headers();
headers.append("Content-Type", "application/json");
headers.append(
"authentication",
`Bearer ${this.authServ.getAuthenticatedUserToken()}`
);
this.handler = StripeCheckout.configure({
key: environment.stripe_public_key,
locale: "auto",
source: async source => {
this.isLoading = true;
this.amount = this.amount * 100;
this.sessionURL = `${this.stringValServ.getCheckoutSessionStripeURL}/${this.activeUser.id}/${this.amount}`;
const session = this.http
.get(this.sessionURL, {
headers: new HttpHeaders({
"Content-Type": "application/json",
authentication: `Bearer ${this.authServ.getAuthenticatedUserToken()}`
})
})
.subscribe(res => {
console.log(res);
});
}
});
//so that the charge is depicted correctly on …Run Code Online (Sandbox Code Playgroud)