141 adding file changes |
141 adding file changes |
142 added 1 changesets with 1 changes to 1 files |
142 added 1 changesets with 1 changes to 1 files |
143 (run 'hg update' to get a working copy) |
143 (run 'hg update' to get a working copy) |
144 $ cd .. |
144 $ cd .. |
145 |
145 |
146 cacert |
146 cacert configured in local repo |
147 |
147 |
148 $ hg -R copy-pull pull --config web.cacerts=pub.pem |
148 $ cp copy-pull/.hg/hgrc copy-pull/.hg/hgrc.bu |
|
149 $ echo "[web]" >> copy-pull/.hg/hgrc |
|
150 $ echo "cacerts=`pwd`/pub.pem" >> copy-pull/.hg/hgrc |
|
151 $ hg -R copy-pull pull --traceback |
149 pulling from https://localhost:$HGPORT/ |
152 pulling from https://localhost:$HGPORT/ |
150 searching for changes |
153 searching for changes |
151 no changes found |
154 no changes found |
|
155 $ mv copy-pull/.hg/hgrc.bu copy-pull/.hg/hgrc |
|
156 |
|
157 cacert configured globally |
|
158 |
|
159 $ echo "[web]" >> $HGRCPATH |
|
160 $ echo "cacerts=`pwd`/pub.pem" >> $HGRCPATH |
|
161 $ hg -R copy-pull pull |
|
162 pulling from https://localhost:$HGPORT/ |
|
163 searching for changes |
|
164 no changes found |
|
165 |
|
166 cacert mismatch |
|
167 |
152 $ hg -R copy-pull pull --config web.cacerts=pub.pem https://127.0.0.1:$HGPORT/ |
168 $ hg -R copy-pull pull --config web.cacerts=pub.pem https://127.0.0.1:$HGPORT/ |
153 abort: 127.0.0.1 certificate error: certificate is for localhost |
169 abort: 127.0.0.1 certificate error: certificate is for localhost |
154 [255] |
170 [255] |
155 $ hg -R copy-pull pull --config web.cacerts=pub-other.pem |
171 $ hg -R copy-pull pull --config web.cacerts=pub-other.pem |
156 abort: error: *:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (glob) |
172 abort: error: *:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (glob) |