fix bug in install_peer_certs