I’ve followed the instructions in docs to use openssl to generate certificates for Blynk server on raspberry Pi, and they are in the same directory as the server file, but I still get the warning messages in the log file that the server certificates paths are not valid.
2016-11-08 22:35:42.219 INFO - Initializing gmail smtp mail transport. Username : example@gmail.com. SMTP host : smtp.gmail.com:587
2016-11-08 22:35:42.378 WARN - ATTENTION. Certificate /home/pi/server.crt and key /home/pi/server.key paths not valid. Using embedded certs. This is not secure. Please replace it with your own certs.
2016-11-08 22:35:44.087 WARN - ATTENTION. Server certificate paths cert : '/home/pi/server.crt', key : '/home/pi/server.key' - not valid. Using embedded server certs and one way ssl. This is not secure. Please replace it with your own c$
2016-11-08 22:35:46.062 WARN - ATTENTION. Certificate /home/pi/server.crt and key /home/pi/server.key paths not valid. Using embedded certs. This is not secure. Please replace it with your own certs.
2016-11-08 22:35:50.240 WARN - ATTENTION. Certificate /home/pi/server.crt and key /home/pi/server.key paths not valid. Using embedded certs. This is not secure. Please replace it with your own certs.
2016-11-08 22:35:51.365 WARN - ATTENTION. Certificate /home/pi/server.crt and key /home/pi/server.key paths not valid. Using embedded certs. This is not secure. Please replace it with your own certs.
2016-11-08 22:35:53.209 INFO - Hardware plain tcp/ip server listening at 8442 port.
2016-11-08 22:35:53.216 INFO - Hardware SSL server listening at 8441 port.
2016-11-08 22:35:53.217 INFO - Application server listening at 8443 port.
2016-11-08 22:35:53.218 INFO - HTTP API server listening at 8080 port.
2016-11-08 22:35:53.220 INFO - HTTPS API server listening at 9443 port.
2016-11-08 22:35:53.221 INFO - HTTPS Admin UI server listening at 7443 port.
2016-11-08 22:35:53.222 INFO - Web Sockets server listening at 8082 port.
2016-11-08 22:35:53.224 INFO - Web SSL Sockets server listening at 8081 port.
2016-11-08 22:35:53.225 INFO - Mqtt hardware server listening at 8440 port.
2016-11-08 22:35:57.711 INFO - ##myemail##@gmail.com hardware joined.
These are my lines as I set them. Are yours the same? (except the path of course)
@Costas if you enter an absolute path it should work, like above. In the USB-serial script there is a variable to the location of the files, but not in the server.properties
The Server is working, it connects to the Sparkfun Thing Dev ESP8266 Board i’m using to test and to my Android mobile - the blink (LED 5) sketch works fine.
I thought it best to provide all the following:
Directory:
pi@raspberrypi:~ $ cd /home/pi/Blynk
pi@raspberrypi:~/Blynk $ dir
deleted server-0.19.1.jar server.pem
mail.properties server.csr server.properties
##myemail##@gmail.com.Blynk.user server.key static
pi@raspberrypi:~/Blynk $
2016-11-13 09:48:44.651 INFO - Region : local
2016-11-13 09:48:48.924 INFO - Initializing gmail smtp mail transport. Username : ##myyemail##@gmail.com. SMTP host : smtp.gmail.com:587
2016-11-13 09:48:49.180 WARN - ATTENTION. Certificate /home/pi/Blynk/server.crt and key /home/pi/Blynk/server.key paths not valid. Using embedded certs. This is not secure. Please replace it with your own certs.
2016-11-13 09:48:53.163 WARN - ATTENTION. Server certificate paths cert : '/home/pi/Blynk/server.crt', key : '/home/pi/Blynk/server.key' - not valid. Using embedded server certs and one way ssl. This is not secure. Please re$
2016-11-13 09:48:55.282 WARN - ATTENTION. Certificate /home/pi/Blynk/server.crt and key /home/pi/Blynk/server.key paths not valid. Using embedded certs. This is not secure. Please replace it with your own certs.
2016-11-13 09:48:56.598 WARN - ATTENTION. Certificate /home/pi/Blynk/server.crt and key /home/pi/Blynk/server.key paths not valid. Using embedded certs. This is not secure. Please replace it with your own certs.
2016-11-13 09:48:58.744 WARN - ATTENTION. Certificate /home/pi/Blynk/server.crt and key /home/pi/Blynk/server.key paths not valid. Using embedded certs. This is not secure. Please replace it with your own certs.
2016-11-13 09:49:01.424 INFO - Hardware plain tcp/ip server listening at 8442 port.
2016-11-13 09:49:01.435 INFO - Hardware SSL server listening at 8441 port.
2016-11-13 09:49:01.437 INFO - Application server listening at 8443 port.
2016-11-13 09:49:01.439 INFO - HTTP API server listening at 8080 port.
2016-11-13 09:49:01.442 INFO - HTTPS API server listening at 9443 port.
2016-11-13 09:49:01.444 INFO - HTTPS Admin UI server listening at 7443 port.
2016-11-13 09:49:01.449 INFO - Web Sockets server listening at 8082 port.
2016-11-13 09:49:01.451 INFO - Web SSL Sockets server listening at 8081 port.
2016-11-13 09:49:01.453 INFO - Mqtt hardware server listening at 8440 port.
2016-11-13 11:20:23.295 INFO - ##myemail##@gmail.com hardware joined.
2016-11-13 11:23:41.739 INFO - ##myemail##@gmail.com Blynk-app joined.