Hello developers,
I try to build my own local Blynk server on my computer, everything goes well but when I try to start my local server at in the final step, the error is shown in my cmd and I do not know how to fix it.
The error is shown below:
C:\Blynk_Server>java -jar server-0.24.3.jar -dataFolder /Path
Exception in thread “main” java.lang.RuntimeException: File does not contain val
id private key: .\server_embedded.pem
at cc.blynk.utils.SslUtil.initSslContext(SslUtil.java:52)
at cc.blynk.utils.SslUtil.initSslContext(SslUtil.java:62)
at cc.blynk.server.SslContextHolder.(SslContextHolder.java:74)
at cc.blynk.server.Holder.(Holder.java:130)
at cc.blynk.server.launcher.ServerLauncher.start(ServerLauncher.java:81)
at cc.blynk.server.launcher.ServerLauncher.main(ServerLauncher.java:75)
And here is the error in log file:
2017-05-11 17:20:09.576 ERROR- Error initializing ssl context. Reason : File does not contain valid private key: .\server_embedded.pem
Thank you so much !
Hello.
You need to change :
server.ssl.cert=
server.ssl.key=
server.ssl.key.pass=
In server.properties
file.
Thank you so much for your reply.
I have already changed the things that you mentioned in server.properties files:
#by default server uses embedded in jar cert to simplify local server installation.
#WARNNING DO NOT USE THIS CERTIFICATES ON PRODUCTION OR IN WHERE ENVIRNOMENTS REAL SECURITY REQUIRED.
#provide either full path to files either use '.' for specifying current directory. For instance "./myfile.crt"
server.host=
server.ssl.cert=./server_embedded.crt
server.ssl.key=./server_embedded.pem
server.ssl.key.pass=
#Blynk server allows to use 2 hosts for same IP, below properties for second host
server2.host=
server2.ssl.cert=./server_embedded.crt
server2.ssl.key=./server_embedded.pem
server2.ssl.key.pass=
but the error still exists, could you please tell me how can I change them ?
Thanks.
You need to cleanup this fields as showed in my above reply.
OMG it works !!!
Thank you soooo much !
Could you telll me where can I find the ip address of my own server ?
Thanks again !
It will be the same (local) IP as the computer/device you installed it on.