# WEBrick servlet for https

**URL:** <https://www.ruby-forum.com/t/webrick-servlet-for-https/51469>\
**Category:** Ruby\
**Created:** [December 31, 2005, 9:51pm UTC](https://www.ruby-forum.com/t/webrick-servlet-for-https/51469 "2005-12-31T21:51:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hose\_ASCuervo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/779978/32.png) [@Hose\_ASCuervo](https://www.ruby-forum.com/u/Hose_ASCuervo)\
**Post date:** [December 31, 2005, 9:51pm UTC](https://www.ruby-forum.com/t/webrick-servlet-for-https/51469/1 "2005-12-31T21:51:06Z")

</div>

I’m writing a servlet subclassed from  
WEBrick::HTTPServlet::AbstractServlet  
to be used in a WEBrick::HTTPServer over ssl.

When the servlet receives the instance of WEBrick::HTTPRequest passed  
into it’s constructor, that instance contains an attribute called  
@client\_cert.

The server is configured to require and verify a client web browser  
certificate,  
and everthing works as expected. But @client\_cert seems to be always set  
to nil.  
I need to somehow obtain the .pem encoded client cert, and extract some  
of  
it’s  
elements.

Perhaps I have overlooked something in the instantiation of my servlet,  
or the https server itself. Complete documentation of this API seems  
scarce.  
Any advice or pointers to documentation would be appreciated.
