From eeb72db8b5076ae88e8ce4be2f4ade366be66070 Mon Sep 17 00:00:00 2001
From: Josh Rickmar <jrick@conformal.com>
Date: Tue, 3 Dec 2013 10:58:57 -0500
Subject: [PATCH] Change default CA file location.

This changes the default CA filename from 'cert.pem' to 'btcd.cert' to
reflect the fact that this cert is used for securely connecting to
btcd.  With the introduction of autogenerated btcwallet certs (saved
to rpc.cert and rpc.key) this change was made to better differentiate
the two cert files.

To upgrade across this change, simply move the btcd cert.  On unix,
use the command:

$ mv ~/.btcwallet/cert.pem ~/.btcwallet/btcd.cert
---
 README.md | 2 +-
 config.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index aa6e07b..79ab226 100644
--- a/README.md
+++ b/README.md
@@ -86,7 +86,7 @@ $ btcd --testnet -u rpcuser -P rpcpass
 
 ```bash
 $ mkdir ~/.btcwallet/
-$ cp ~/.btcd/rpc.cert ~/.btcwallet/cert.pem
+$ cp ~/.btcd/rpc.cert ~/.btcwallet/btcd.cert
 ```
 
 - Run the following command to start btcwallet:
diff --git a/config.go b/config.go
index dfd916f..a41791f 100644
--- a/config.go
+++ b/config.go
@@ -28,7 +28,7 @@ import (
 )
 
 const (
-	defaultCAFilename     = "cert.pem"
+	defaultCAFilename     = "btcd.cert"
 	defaultConfigFilename = "btcwallet.conf"
 	defaultDataDirname    = "data"
 	defaultBtcNet         = btcwire.TestNet3