use mdata to setup spiped and configure ssl