Write RPC cert and key to correct files.

This commit is contained in:
Josh Rickmar 2014-01-14 11:13:27 -05:00
parent ba92c234b3
commit 86cf8e7005

View file

@ -120,7 +120,7 @@ func newServer(listenAddrs []string) (*server, error) {
// Check for existence of cert file and key file
if !fileExists(cfg.RPCKey) && !fileExists(cfg.RPCCert) {
// if both files do not exist, we generate them.
err := genCertPair(cfg.RPCKey, cfg.RPCCert)
err := genCertPair(cfg.RPCCert, cfg.RPCKey)
if err != nil {
return nil, err
}