我目前有两个docker容器在运行:
ab1ae510f069 471b8de074c4 "docker-entrypoint.s…" 8 minutes ago Up 8 minutes 0.0.0.0:3001->3001/tcp hopeful_bassi
2d4797b77fbf 5985005576a6 "nginx -g 'daemon of…" 25 minutes ago Up 25 minut
我想知道如何才能强制我的本地无服务器部署模仿我将其部署到AWS时发生的情况。 这是我的无服务器yaml文件: service: payment # NOTE: update this with your service name
# You can pin your service to only deploy with a specific Serverless version
# Check out our docs for more details
# frameworkVersion: "=X.X.X"
environment:
SLS_DEBUG: "*&
我尝试使用外部web服务对pdf进行数字签名。此web服务包含用户证书,用户可以使用他们的凭据和一次生成的密码访问该证书。
Sidenote: web服务应该期望pdf摘要(散列),但奇怪的是它接受了整个文件。
无论如何,实现如下:
using iTextSharp.text.pdf;
using iTextSharp.text.pdf.security;
// OTP = One Time Password code
public void SignPdf(string username, string password, string otp)
{
byte[] file = G