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 8146027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:51:23+00:00 2026-06-06T13:51:23+00:00

To get around the problem of an SSL-terminating load balancer (it doesn’t forward client

  • 0

To get around the problem of an SSL-terminating load balancer (it doesn’t forward client certs to the application servers), our ISP has configured our environment such that client certificates are forwarded within the HTTP headers to the real servers (as X-Client-Cert).

I will be authenticating clients with a PIN mapped to the serial number of the certificate they’ve been issued with. But how do I get at the certificate from the custom header?

  • 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-06-06T13:51:24+00:00Added an answer on June 6, 2026 at 1:51 pm

    I assume you know that you can get the certificate data using

    String s = Request.Headers["X-Client-Cert"];
    

    The question is now in which format the certificate is added to the header. I would assume that it is encoded in Base64.

    byte[] certdata = Convert.FromBase64String(s);
    

    Then you can create the certificate object from it:

    X509Certificate cert = new X509Certificate(certdata);
    

    Depending on if the load balancer checks the client certificate for validity (and if it has been singed by the correct root CA) or not you have to check the validity of the certificate yourself or not.

    Afterwards you can just read the serial number via cert.GetSerialNumber();

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

Sidebar

Related Questions

I can't get around a peculiar problem with SimpleOpenNI for Processing ao I'm asking
This is a stupid problem, but I can't seem to get around it. I
got a problem, can't get my head around this jquery and would appreciate your
This is not a query. Its a summary of our solution to get around
Update: To get around this problem I created a simply filewatcher which would touch
I'm trying to get around a problem with file:consult/1 not allowing tuples with fun
Anyone know how to get around this problem? I'm doing some custom button styling.
UPDATE 1: I can get around the problem with a try/catch, but I would
I have written some jquery to get around this problem: iPhone "Bookmark to Homescreen"
How can I get around this exception? Dim imagepathlit As Literal = DownloadsRepeater.FindControl(imagepathlit) imagepathlit.Text

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.