TechAspirant

Results 14 comments of TechAspirant

* add entries for certs on configuration, possibly specifying path on the config file as well -> for this I have added two entries in config file Check whether connection...

I have create certificates for my broker using openssl command like below req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem and Mentioned Below line in conf file...

I am getting connected message for my client Id but Client shows continuously connection error 1575029534 i New client connected as 814e1a4f-4885-42bb-a4bb-181890d1267d1575030492087 (c0, k10) 1575029534 # Sending CONNACK to 814e1a4f-4885-42bb-a4bb-181890d1267d1575030492087...

> I start the server by making ssl=true and port=8883 it gives the error as follow... > 1995538976:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:288:fopen('','r') > 1995538976:error:20074002:BIO routines:file_ctrl:system lib:../crypto/bio/bss_file.c:290: > 1995538976:error:140AD002:SSL routines:SSL_CTX_use_certificate_file:system...

> > but while connecting from MQTT Client its showing Droping client at server side. Not able to connect. > > Im facing the same issue. Were you able to...

> certificate.pem Is certificate.pem file present at location /home/pi ? Change from ~/home/pi/certificate.pem to /home/pi/certificate.pem

> Now getting this permission error as follow.. > 1995821600:error:0200100D:system library:fopen:Permission denied:../crypto/bio/bss_file.c:288:fopen('/home/pi/key.pem','r') > 1995821600:error:20074002:BIO routines:file_ctrl:system lib:../crypto/bio/bss_file.c:290: > 1995821600:error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib:../ssl/ssl_rsa.c:540: Try by running using sudo rights

> sudo lsof -n -P -i | grep LISTEN I tried running the same command sudo lsof -n -P -i | grep LISTEN I can see my broker executable listening...

> which command you use to start the broker. ./sol -c /home/user/Desktop/mqttbroker/sol-master/conf/sol.conf

> I am using the same command still port is not listen anything. Any error after running command ? Can you show me once the conf file ?