Click here to Skip to main content
15,868,016 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 5:21
professionalZurdoDev17-Feb-17 5:21 
QuestionHi All Pin
websiter803-Jan-17 6:17
websiter803-Jan-17 6:17 
AnswerRe: Hi All Pin
Richard MacCutchan3-Jan-17 6:26
mveRichard MacCutchan3-Jan-17 6:26 
GeneralRe: Hi All Pin
JACOB-TANZANIA3-Feb-17 21:48
professionalJACOB-TANZANIA3-Feb-17 21:48 
AnswerRe: Hi All Pin
Afzaal Ahmad Zeeshan3-Jan-17 7:30
professionalAfzaal Ahmad Zeeshan3-Jan-17 7:30 
AnswerRe: Hi All Pin
Jon McKee23-Jan-17 23:40
professionalJon McKee23-Jan-17 23:40 
QuestionECDH using OpenSSL Pin
Member 1287356328-Nov-16 23:57
Member 1287356328-Nov-16 23:57 
AnswerRe: ECDH using OpenSSL Pin
Jochen Arndt29-Nov-16 0:30
professionalJochen Arndt29-Nov-16 0: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 1:36
Member 1287356330-Nov-16 1:36 
GeneralRe: ECDH using OpenSSL Pin
Jochen Arndt30-Nov-16 2:33
professionalJochen Arndt30-Nov-16 2:33 
Questioncreate data base Pin
Member 1286606322-Nov-16 22:43
Member 1286606322-Nov-16 22:43 
AnswerRe: create data base Pin
Jochen Arndt22-Nov-16 23:00
professionalJochen Arndt22-Nov-16 23:00 
GeneralRe: create data base Pin
Member 130068963-Apr-17 7:16
Member 130068963-Apr-17 7:16 
AnswerRe: create data base Pin
ZurdoDev28-Nov-16 4:45
professionalZurdoDev28-Nov-16 4:45 
AnswerWriting programs in Linux Pin
Vaclav_18-Nov-16 4:48
Vaclav_18-Nov-16 4:48 
QuestionSeeking USB discussion forum / place Pin
Vaclav_30-Oct-16 10:07
Vaclav_30-Oct-16 10:07 
AnswerRe: Seeking USB discussion forum / place Pin
ZurdoDev28-Nov-16 4:47
professionalZurdoDev28-Nov-16 4:47 
GeneralRe: Seeking USB discussion forum / place Pin
Vaclav_28-Nov-16 6:05
Vaclav_28-Nov-16 6:05 
GeneralRe: Seeking USB discussion forum / place Pin
Richard MacCutchan28-Nov-16 6:30
mveRichard MacCutchan28-Nov-16 6:30 
AnswerRe: Seeking USB discussion forum / place Pin
Munchies_Matt2-May-17 4:53
Munchies_Matt2-May-17 4:53 
QuestionI am new here Pin
Member 1279667016-Oct-16 12:17
Member 1279667016-Oct-16 12:17 
AnswerRe: I am new here Pin
koolprasad200316-Oct-16 18:36
professionalkoolprasad200316-Oct-16 18:36 
Questionnote! Pin
Member 1251449829-Sep-16 23:39
Member 1251449829-Sep-16 23:39 
QuestionRe: note! Pin
Richard MacCutchan30-Sep-16 0:49
mveRichard MacCutchan30-Sep-16 0:49 
Question"Colourised in XXms" what this new feature means? Pin
Suvendu Shekhar Giri22-Sep-16 20:54
professionalSuvendu Shekhar Giri22-Sep-16 20: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.