Click here to Skip to main content
15,512,456 members
Home / Discussions / - Uncategorised posts -
   

- Uncategorised posts -

Please don't post in this forum. If you've posted in this forum it's because you've selected the first forum on the list without thinking through which forum would be best. All messages in this forum are periodically removed.

 
AnswerRe: Very big database question. Need answers ? Pin
ZurdoDev17-Feb-17 6:21
professionalZurdoDev17-Feb-17 6:21 
QuestionHi All Pin
websiter803-Jan-17 7:17
websiter803-Jan-17 7:17 
AnswerRe: Hi All Pin
Richard MacCutchan3-Jan-17 7:26
mveRichard MacCutchan3-Jan-17 7:26 
GeneralRe: Hi All Pin
JACOB-TANZANIA3-Feb-17 22:48
professionalJACOB-TANZANIA3-Feb-17 22:48 
AnswerRe: Hi All Pin
Afzaal Ahmad Zeeshan3-Jan-17 8:30
mveAfzaal Ahmad Zeeshan3-Jan-17 8:30 
AnswerRe: Hi All Pin
Jon McKee24-Jan-17 0:40
professionalJon McKee24-Jan-17 0:40 
QuestionECDH using OpenSSL Pin
Member 1287356329-Nov-16 0:57
Member 1287356329-Nov-16 0:57 
AnswerRe: ECDH using OpenSSL Pin
Jochen Arndt29-Nov-16 1:30
professionalJochen Arndt29-Nov-16 1:30 
When having such problems it is always helpful to show the error message.

First step is reading the manual page for the commands and understand what they are doing:
pkeyutl(1): public key algorithm utility - Linux man page[^]
dgst(1): message digests - Linux man page[^].
You can read them also at a shell prompt by entering man pkeyutl resp. man dgst.

You should also know about shell commands (piping in your case). The pipe operator | sends the standard output of the first command to the standard input of the second. So a first check might be executing the first command only to see if the error occurs there.

You are writing the result of the first command to a file (option -out sharedsecret.bin). So the output on screen are just error or success messages. Passing these to another program using the pipe operator makes usually no sense.

So a possible solution might be omitting the output to file for the first command (untested):
openssl pkeyutl -derive -inkey musicpriv.pem -peerkey pubeckey.pem | openssl dgst -sha256


Another solution might be using the created file as input for the second command:
openssl pkeyutl -derive -inkey musicpriv.pem -peerkey pubeckey.pem -out sharedsecret.bin && openssl dgst -sha256 sharedsecret.bin

Note the usage of the && operator here. It is a shell command concatenation where the second command is only executed when the first was successful.
GeneralRe: ECDH using OpenSSL Pin
Member 1287356330-Nov-16 2:36
Member 1287356330-Nov-16 2:36 
GeneralRe: ECDH using OpenSSL Pin
Jochen Arndt30-Nov-16 3:33
professionalJochen Arndt30-Nov-16 3:33 
Questioncreate data base Pin
Member 1286606322-Nov-16 23:43
Member 1286606322-Nov-16 23:43 
AnswerRe: create data base Pin
Jochen Arndt23-Nov-16 0:00
professionalJochen Arndt23-Nov-16 0:00 
GeneralRe: create data base Pin
Member 130068963-Apr-17 8:16
Member 130068963-Apr-17 8:16 
AnswerRe: create data base Pin
ZurdoDev28-Nov-16 5:45
professionalZurdoDev28-Nov-16 5:45 
AnswerWriting programs in Linux Pin
Vaclav_18-Nov-16 5:48
Vaclav_18-Nov-16 5:48 
QuestionSeeking USB discussion forum / place Pin
Vaclav_30-Oct-16 11:07
Vaclav_30-Oct-16 11:07 
AnswerRe: Seeking USB discussion forum / place Pin
ZurdoDev28-Nov-16 5:47
professionalZurdoDev28-Nov-16 5:47 
GeneralRe: Seeking USB discussion forum / place Pin
Vaclav_28-Nov-16 7:05
Vaclav_28-Nov-16 7:05 
GeneralRe: Seeking USB discussion forum / place Pin
Richard MacCutchan28-Nov-16 7:30
mveRichard MacCutchan28-Nov-16 7:30 
AnswerRe: Seeking USB discussion forum / place Pin
Munchies_Matt2-May-17 5:53
Munchies_Matt2-May-17 5:53 
QuestionI am new here Pin
Member 1279667016-Oct-16 13:17
Member 1279667016-Oct-16 13:17 
AnswerRe: I am new here Pin
koolprasad200316-Oct-16 19:36
professionalkoolprasad200316-Oct-16 19:36 
Questionnote! Pin
Member 1251449830-Sep-16 0:39
Member 1251449830-Sep-16 0:39 
QuestionRe: note! Pin
Richard MacCutchan30-Sep-16 1:49
mveRichard MacCutchan30-Sep-16 1:49 
Question"Colourised in XXms" what this new feature means? Pin
Suvendu Shekhar Giri22-Sep-16 21:54
professionalSuvendu Shekhar Giri22-Sep-16 21:54 

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.