[WebDNA] Sending Client Side Certificate via TCPCONNECT
This WebDNA talk-list message is from 2011
It keeps the original formatting.
numero = 107459
interpreted = N
texte = My Environment: Win2003/IIS6/WebDNA6.2I am looking for a method to establish an SSL connection using =TCPCONNECT that will send a client side SSL certificate to the remote =server. This is a credit card processor who requires a client side =certificate as part of the authorization scheme. The card processor =provided sample code in ASP and PHP that demonstrates a connection =script with certificate parameters in the connection request.I have searched for a method to do it using variables in the TCPSEND, =but it appears the certificate is required in the SSL handshake. This =indicates to me that it should be part of the TCPCONNECT.Any ideas will be greatly appreciated.ChrisMy Code:[tcpconnect host=3Dws.firstdataglobalgateway.com&port=3D443&ssl=3DT][!][/!][text]ResponseString=3D[tcpsend skipheader=3DT][!][/!]POST /fdggwsapi/services HTTP/1.0[crlf][!][/!]Content-Type: text/xml[crlf][!][/!]Authorization: Basic [encrypt =method=3Dbase64]WSXXXXXX211._.1:XXXXXXhzU[/encrypt][crlf][!][/!]Content-Length: [length][crlf][!][/!]Host: ws.firstdataglobalgateway.com[crlf][!][/!][crlf][!][/!][sending][/TCPSend][/text][/tcpconnect]SAMPLE ASP:<%...// setting the path where the client certificate to send can be found:request.setClientCertificate("LOCAL_MACHINE\\My\\WS101._.1");...%>SAMPLE PHP:// setting the path where cURL can find the certificate to verify the// received server certificate against:curl_setopt($ch, CURLOPT_SSLCERT, $pemlocation);// setting the path where cURL can find the key:curl_setopt($ch, CURLOPT_SSLKEY, $keylocation);// providing the password for the keycurl_setopt($ch, CURLOPT_SSLKEYPASSWD, $keypassword);
Associated Messages, from the most recent to the oldest:
|      | 
- [WebDNA] Sending Client Side Certificate via TCPCONNECT (chris@usinter.net 2011)
  
 
 | 
My Environment: Win2003/IIS6/WebDNA6.2I am looking for a method to establish an SSL connection using =TCPCONNECT that will send a client side SSL certificate to the remote =server. This is a credit card processor who requires a client side =certificate as part of the authorization scheme. The card processor =provided sample code in ASP and PHP that demonstrates a connection =script with certificate parameters in the connection request.I have searched for a method to do it using variables in the TCPSEND, =but it appears the certificate is required in the SSL handshake. This =indicates to me that it should be part of the TCPCONNECT.Any ideas will be greatly appreciated.ChrisMy Code:[tcpconnect host=3Dws.firstdataglobalgateway.com&port=3D443&ssl=3DT]
[!][/!]
[text]ResponseString=3D[tcpsend skipheader=3DT]
[!][/!]POST /fdggwsapi/services HTTP/1.0[crlf]
[!][/!]Content-Type: text/xml[crlf]
[!][/!]Authorization: Basic [encrypt =method=3Dbase64]WSXXXXXX211._.1:XXXXXXhzU[/encrypt][crlf]
[!][/!]Content-Length: [length][crlf]
[!][/!]Host: ws.firstdataglobalgateway.com[crlf]
[!][/!][crlf]
[!][/!][sending][/TCPSend][/text][/tcpconnect]SAMPLE ASP:<%...// setting the path where the client certificate to send can be found:request.setClientCertificate("LOCAL_MACHINE\\My\\WS101._.1");...%>SAMPLE PHP:// setting the path where cURL can find the certificate to verify the// received server certificate against:curl_setopt($ch, CURLOPT_SSLCERT, $pemlocation);// setting the path where cURL can find the key:curl_setopt($ch, CURLOPT_SSLKEY, $keylocation);// providing the password for the keycurl_setopt($ch, CURLOPT_SSLKEYPASSWD, $keypassword);
chris@usinter.net
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
 
different show next (1997)
 
RE: speed of TCPConnect? (1998)
 
Initiating NewCart (1997)
 
move files (2000)
 
Re:WebCatalog vidoes (was: Prices Dropped) (1998)
 
[BULK]  [WebDNA] How to code a 301 redirect (2009)
 
WebTEN vs webSTAR (1998)
 
Cache problem (2002)
 
 MySQL Dates and WebDNA (2005)
 
 Cookie and Domain Names (2005)
 
Shownext! (1998)
 
Encrypt & SetHeader Length Problem (2000)
 
NetSplat and WebCat2 (1997)
 
Re:Item options w/ price adjustment (1997)
 
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
 
[OT] PHP?MySQL Help Needed (2003)
 
missing records (1998)
 
Summary search -- speed (1997)
 
Sendmail doesn't (was Queertrons?) (1997)
 
PIXO with cometsite ... and/or other plugins (1998)