MKR1000 Mosquitto server authentication

Hi friends.
I want to connect my MKR1000 to my mosquitto MQTT server hosted on my Raspberry pi.
I want to add ssl/tls certificate authentication at my server end using CSR generated by ArduinoECCX08CSR example. can someone guide me how to generate certificates at server end which will help in secure establishing secure connection with my mkr and mosquitto server.