Click here to Skip to main content
15,915,093 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: vb.net desktop app zoom feature Pin
Eddy Vluggen23-Aug-17 9:57
professionalEddy Vluggen23-Aug-17 9:57 
SuggestionRe: vb.net desktop app zoom feature Pin
Richard MacCutchan23-Aug-17 21:17
mveRichard MacCutchan23-Aug-17 21:17 
QuestionHow to connect Excell 2017 to Oracle DB to get Data by using VBA code. Pin
hmanhha20-Aug-17 22:15
hmanhha20-Aug-17 22:15 
AnswerRe: How to connect Excell 2017 to Oracle DB to get Data by using VBA code. Pin
Richard MacCutchan21-Aug-17 0:39
mveRichard MacCutchan21-Aug-17 0:39 
GeneralRe: How to connect Excell 2017 to Oracle DB to get Data by using VBA code. Pin
hmanhha21-Aug-17 15:49
hmanhha21-Aug-17 15:49 
GeneralRe: How to connect Excell 2017 to Oracle DB to get Data by using VBA code. Pin
Mycroft Holmes21-Aug-17 19:59
professionalMycroft Holmes21-Aug-17 19:59 
QuestionMapWinGIS and Visual Basic Pin
Member 1336786618-Aug-17 15:20
Member 1336786618-Aug-17 15:20 
QuestionTrying to connect to SAP Pin
A_Griffin18-Aug-17 5:15
A_Griffin18-Aug-17 5:15 
AnswerRe: Trying to connect to SAP Pin
Dave Kreskowiak18-Aug-17 7:18
mveDave Kreskowiak18-Aug-17 7:18 
GeneralRe: Trying to connect to SAP Pin
A_Griffin18-Aug-17 8:08
A_Griffin18-Aug-17 8:08 
GeneralRe: Trying to connect to SAP Pin
Richard Deeming18-Aug-17 8:18
mveRichard Deeming18-Aug-17 8:18 
GeneralRe: Trying to connect to SAP Pin
A_Griffin18-Aug-17 8:31
A_Griffin18-Aug-17 8:31 
GeneralRe: Trying to connect to SAP Pin
Dave Kreskowiak20-Aug-17 7:38
mveDave Kreskowiak20-Aug-17 7:38 
GeneralRe: Trying to connect to SAP Pin
A_Griffin20-Aug-17 8:45
A_Griffin20-Aug-17 8:45 
Questionvb.net desktop increase display size of app Pin
dcof16-Aug-17 4:03
dcof16-Aug-17 4:03 
AnswerRe: vb.net desktop increase display size of app Pin
Eddy Vluggen16-Aug-17 5:06
professionalEddy Vluggen16-Aug-17 5:06 
AnswerRe: vb.net desktop increase display size of app Pin
Graham Irons16-Aug-17 21:09
Graham Irons16-Aug-17 21:09 
GeneralRe: vb.net desktop increase display size of app Pin
Mycroft Holmes16-Aug-17 21:34
professionalMycroft Holmes16-Aug-17 21:34 
GeneralRe: vb.net desktop increase display size of app Pin
Graham Irons16-Aug-17 21:43
Graham Irons16-Aug-17 21:43 
GeneralRe: vb.net desktop increase display size of app Pin
Mycroft Holmes16-Aug-17 21:56
professionalMycroft Holmes16-Aug-17 21:56 
QuestionHTTPS WebRequest failing with ThreadAbortException Pin
Peter R. Fletcher4-Aug-17 5:45
Peter R. Fletcher4-Aug-17 5:45 
SuggestionRe: HTTPS WebRequest failing with ThreadAbortException Pin
Richard Deeming4-Aug-17 5:59
mveRichard Deeming4-Aug-17 5:59 
GeneralRe: HTTPS WebRequest failing with ThreadAbortException Pin
Peter R. Fletcher4-Aug-17 7:49
Peter R. Fletcher4-Aug-17 7:49 
GeneralRe: HTTPS WebRequest failing with ThreadAbortException Pin
Peter R. Fletcher5-Aug-17 5:09
Peter R. Fletcher5-Aug-17 5:09 
QuestionWinhttp and p12 certificate Pin
Crazy Joe Devola24-Jul-17 19:12
Crazy Joe Devola24-Jul-17 19:12 
I am writing a client program in VB6 which will interface to a server over HTTP. The company who runs the server provided me with a certificate file called SomeCertificate.p12.
My program is running on Windows XP. This is the operating system the customer is using.
I am trying to find how to use this certificate when sending requests to the server.
Here is what I have done so far:
  1. Copied the certificate file to my test computer.
  2. Using Internet Explorer V8, I did "Tools|Internet Options|Content|Certificates|Trusted Root Authorities" and imported the certificate.
  3. Installed the winhttpcertcfg tool.
  4. Ran the following from command prompt:
"winhttpcertcfg -i SomeCertificate.p12 -c LOCAL_MACHINE\My -a COMPUTERNAME\USERNAME -p PasswordFromServerCompany"
the output was something like this. I replaced the different tokens with dummy strings:

Imported certificate:
CN=string1
OU=string2
O=string3
L=string4
C=string5

Private key access has already been granted for account: COMPUTERNAME\USERNAME
  1. My VB6 code looks something like this:
Private WithEvents m_ServerObj As WinHttpRequest Set m_ServerObj = New WinHttpRequest m_ServerObj.Open "GET", "https://serveraddress"
Call m_ServerObj.SetClientCertificate("LOCAL_MACHINE\Personal\SomeCertificate")
m_ServerObj.Send TextToSend

The Send call causes an exception: "A certificate is required to complete client authentication"
I tried different strings in the SetClientCertificate call but I keep getting the same error.
I'd appreciate any help and tips. What am i doing wrong? Is my code wrong? Did I use winhttpcertcfg incorrectly?

thank you.

modified 25-Jul-17 2:12am.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.