fix(peerserver): use correct scheme; fix cert/key arg order