Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6569639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:39:26+00:00 2026-05-25T14:39:26+00:00

I am using Bouncy Castle to read response from Time Stamp server in .NET.Now

  • 0

I am using Bouncy Castle to read response from Time Stamp server in .NET.Now i want to show time stamp server certificate to client, how can I read time stamp server certificate from response?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:39:27+00:00Added an answer on May 25, 2026 at 2:39 pm

    Relevant section of RFC 3161:

    If the certReq field is present and set to true, the TSA’s public key
    certificate that is referenced by the ESSCertID identifier inside a
    SigningCertificate attribute in the response MUST be provided by the
    TSA in the certificates field from the SignedData structure in that
    response. That field may also contain other certificates.

    So, first of all, you need to make sure that certReq is true in the request. This is an option in the Org.BouncyCastle.Asn1.Tsp.TimeStampReq constructor.

    Then, the response will contain the certificate, and since there may be other certificates in there too, you need to fish out the one that was used for the timestamp signature:

    TimeStampResponse resp = ...;
    TimeStampToken tsToken = resp.TimeStampToken;
    IX509Store store = tsToken.GetCertificates("Collection");
    SignerID signerID = tsToken.SignerID;
    ICollection matches = store.GetMatches(signerID);
    

    That ‘matches’ collection should have exactly one cert in it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to request a cert (from AD cert server) using a template. I
How do encrypt/decrypt a long or int using the Bouncy Castle crypto routines for
I've created an web authentication app using c# & asp.net and want to bounce
Surprisingly enough there's very little information on the Web about using Bouncy Castle's lightweight
Can different crytographic library be use for server and client? I want to implement
I need help using Bouncy Castle RSA Libraries for a school assignment, but it
I have an Android crypto app that's built with Bouncy Castle (actually using Spongy
I'm using Java's SSLSocket to secure communications between a client and a server program.
using BouncyCastle and with help from a stackoverflow question I got this: using System.Net.Sockets;
I'm currently writing an application to PGP encrypt files using the Bouncy Castle API

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.