Click here to Skip to main content
15,889,462 members
Home / Discussions / C#
   

C#

 
GeneralRe: Out of interest, how many of you have used SecureString for passwords? Pin
Eddy Vluggen27-May-14 7:41
professionalEddy Vluggen27-May-14 7:41 
AnswerRe: Out of interest, how many of you have used SecureString for passwords? Pin
BobJanova27-May-14 2:54
BobJanova27-May-14 2:54 
QuestionUser Logon for Windows Applications Best Practices Pin
Aaron Hartley23-May-14 3:56
Aaron Hartley23-May-14 3:56 
AnswerRe: User Logon for Windows Applications Best Practices Pin
Rob Philpott23-May-14 4:22
Rob Philpott23-May-14 4:22 
AnswerRe: User Logon for Windows Applications Best Practices Pin
Eddy Vluggen23-May-14 5:16
professionalEddy Vluggen23-May-14 5:16 
GeneralRe: User Logon for Windows Applications Best Practices Pin
Aaron Hartley23-May-14 6:52
Aaron Hartley23-May-14 6:52 
GeneralRe: User Logon for Windows Applications Best Practices Pin
Eddy Vluggen23-May-14 7:19
professionalEddy Vluggen23-May-14 7:19 
QuestionHow to make a REST request with certificate, private key and password in C#? Pin
rune00723-May-14 0:50
rune00723-May-14 0:50 
Hi we are trying to make a GET request against a REST API of a partner company.

In collaboration with the partner company we have produced the necessary ingredients, but we don't know how to put them together?
This is what we have:

- URL: The URL of the partner REST API
- PRIVATE KEY: privateKey.key
- CERTIFICATE: certificate.pem
- PASSWORD: We have defined some passwords.

We have tried to open the .key and the .pem files with Notepad, and the text there is readable, and goes like:

privateKey.key:
-----BEGIN PRIVATE KEY-----
MIIEvAIBA
(...)
6xz6tGWWdkR4uw==
-----END PRIVATE KEY-----

certificate.pem
-----BEGIN CERTIFICATE-----
MIIEbDCCA (...)
QmliDutXh/BjT0=
-----END CERTIFICATE-----

We are wondering how to make a REST request with these things in C#?
We have been wondering if the PRIVATE KEY and the CERTIFICATE should be converted into another file?
So with OpenSSL, running the command below, we tried to convert those two files into a .pfx file:
openssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt
The resulting .pfx file was not human readable, it was like: " ‚h‚d0‚`0‚ *†H†÷ (...)".
To make the REST GET request is it then necessary to install the certificate?
As you may understand from this post we are quite ignorant on the subject of making a request with certificate, private key and password in C#, looking for some help.
There are many questions and we actually don't know exactly what to do.
QuestionResizing a Picture Pin
megha_p22-May-14 23:22
megha_p22-May-14 23:22 
AnswerRe: Resizing a Picture Pin
OriginalGriff23-May-14 0:05
mveOriginalGriff23-May-14 0:05 
AnswerRe: Resizing a Picture Pin
Emre Ataseven25-May-14 10:06
professionalEmre Ataseven25-May-14 10:06 
Questionhow can i resize my picturebox image with less pixels? Pin
megha_p22-May-14 22:00
megha_p22-May-14 22:00 
AnswerRe: how can i resize my picturebox image with less pixels? Pin
OriginalGriff22-May-14 22:14
mveOriginalGriff22-May-14 22:14 
AnswerRe: how can i resize my picturebox image with less pixels? Pin
Karen Mitchelle22-May-14 22:21
professionalKaren Mitchelle22-May-14 22:21 
GeneralRe: how can i resize my picturebox image with less pixels? Pin
Pete O'Hanlon22-May-14 22:39
mvePete O'Hanlon22-May-14 22:39 
GeneralRe: how can i resize my picturebox image with less pixels? Pin
Karen Mitchelle22-May-14 23:02
professionalKaren Mitchelle22-May-14 23:02 
GeneralRe: how can i resize my picturebox image with less pixels? Pin
Pete O'Hanlon22-May-14 23:41
mvePete O'Hanlon22-May-14 23:41 
AnswerRe: how can i resize my picturebox image with less pixels? Pin
Emre Ataseven25-May-14 10:08
professionalEmre Ataseven25-May-14 10:08 
QuestionError in Console App:"The request was aborted: Could not create SSL/TLS secure channel." Pin
QuickDeveloper22-May-14 9:05
QuickDeveloper22-May-14 9:05 
AnswerRe: Error in Console App:"The request was aborted: Could not create SSL/TLS secure channel." Pin
BobJanova22-May-14 22:58
BobJanova22-May-14 22:58 
QuestionHow to send 255 bit data to I/O card ? Pin
Erkanh22-May-14 9:04
Erkanh22-May-14 9:04 
AnswerRe: How to send 255 bit data to I/O card ? Pin
jschell22-May-14 9:16
jschell22-May-14 9:16 
AnswerRe: How to send 255 bit data to I/O card ? Pin
OriginalGriff22-May-14 22:17
mveOriginalGriff22-May-14 22:17 
AnswerRe: How to send 255 bit data to I/O card ? Pin
Rob Philpott22-May-14 22:22
Rob Philpott22-May-14 22:22 
GeneralIs it possible controlling number of 255 solenoid valve ? Pin
Erkanh16-Jun-14 2:23
Erkanh16-Jun-14 2:23 

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.