Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Enabler:Orion
Description
Created question in FIWARE Q/A platform on 27-11-2014 at 19:11
Please, ANSWER this question AT https://stackoverflow.com/questions/27177105/getting-error-error-loading-private-server-key
Question:
Getting error "Error loading private server key"
Description:
So I was implementing rush in Orion Context Broker Server instance, and whenever I try to start the contextBroker with the following command:
contextBroker -rush localhost:1234 -https -key privkey.pem -cert cert.csr
, I'm getting the following error:
E@18:16:11 loadFile[1101]: error opening 'privkey.pem': No such file or directory
X@18:16:11 main[1258]: Error loading private server key from 'privkey.pem'
I generated my private key with the following command, I don't know if it's correct:
openssl genrsa -des3 -out privkey.pem 2048
And I generated my certificate with the following command:
openssl req -new -key privkey.pem -out cert.csr
Do I'm doing something wrong?
2017-06-06 03:05|CREATED monitor | # answers= 1, accepted answer= True