Fix openssl commandline. I had them reversed in the if-else clause
Added proper sanity check for empty slicenames so that scripts dont choke on missing slicenames