Allow certificate/key to be passed as bytes