简体   繁体   English

将用户名和密码传递给CryptRetrieveTimeStamp函数

[英]Passing username and password to CryptRetrieveTimeStamp function

I'm trying to retrieve a timestamp from a TSA using CryptRetrieveTimeStamp . 我正在尝试使用CryptRetrieveTimeStamp从TSA检索时间戳。

I can get it from some of the free services found on this answer , but always using the TIMESTAMP_NO_AUTH_RETRIEVAL flag. 我可以从此答案中找到的一些免费服务中获得它,但始终使用TIMESTAMP_NO_AUTH_RETRIEVAL标志。

But now that I want to use a paid service that uses credentials I cannot figure it out how to get it using a username and a password. 但是,现在我想使用使用凭据的付费服务,因此我无法弄清楚如何使用用户名和密码来获取它。

Does anyone know how to send a username and password to a TSA using CryptRetrieveTimeStamp? 有谁知道如何使用CryptRetrieveTimeStamp将用户名和密码发送到TSA?

I haven't tried to do this myself, but have you tried putting them in the URL? 我没有尝试自己做,但是您是否尝试过将它们放入URL? Something like: 就像是:

https://username:password@server.domain.com/ts/

I'd be curious to know if that works. 我很好奇这是否行得通。 Currently we're using free timestamping servers, but you never know. 目前,我们正在使用免费的时间戳服务器,但您永远不会知道。

By the way: I see you tagged your post with RFC 3161. Does that mean CryptRetrieveTimeStamp works with RFC 3161 timestamp servers? 顺便说一句:我看到您用RFC 3161标记了您的帖子。这是否意味着CryptRetrieveTimeStamp可用于RFC 3161时间戳服务器? The documentation is marvelously unclear. 该文档非常不清楚。 I'm going to try it as soon as I get a chance, but it's always worth asking. 如果有机会,我将立即尝试,但始终值得一问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM