# Clone from github with selfsigned certificate

**URL:** https://drone.discourse.group/t/clone-from-github-with-selfsigned-certificate/9747
**Category:** Drone Support
**Created:** [November 24, 2016, 3:02pm UTC](https://drone.discourse.group/t/clone-from-github-with-selfsigned-certificate/9747 "2016-11-24T15:02:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mrueg](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mrueg](https://drone.discourse.group/u/mrueg)
#### Post date: [November 24, 2016, 3:02pm UTC](https://drone.discourse.group/t/clone-from-github-with-selfsigned-certificate/9747/1 "2016-11-24T15:02:56Z")

</div>

Hi,

is anyone aware of a possibility to inject a private rootCA into plugins/git?

I’m currently evaluating drone with github having a certificate signed by a private CA. Currently the builds fail due to the fact that the rootCA is not available during the clone stage.

---

<div class="post-metadata">

### Author: ![jmccann](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/jmccann/32/2177_2.png) [@jmccann](https://drone.discourse.group/u/jmccann)
#### Post date: [November 24, 2016, 5:01pm UTC](https://drone.discourse.group/t/clone-from-github-with-selfsigned-certificate/9747/2 "2016-11-24T17:01:48Z")

</div>

You can override the git clone step by defining one manually. You can then configure `skip_verify` to `true`.

Find examples and more information @  
[https://github.com/drone-plugins/drone-git/blob/master/DOCS.md#config](https://github.com/drone-plugins/drone-git/blob/master/DOCS.md#config)

---

<div class="post-metadata">

### Author: ![mrueg](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mrueg](https://drone.discourse.group/u/mrueg)
#### Post date: [January 24, 2017, 9:12am UTC](https://drone.discourse.group/t/clone-from-github-with-selfsigned-certificate/9747/3 "2017-01-24T09:12:44Z")

</div>

Thanks, that worked!

---

<div class="post-metadata">

### Author: ![igrep](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/igrep/32/3697_2.png) [@igrep](https://drone.discourse.group/u/igrep)
#### Post date: [February 8, 2018, 10:27am UTC](https://drone.discourse.group/t/clone-from-github-with-selfsigned-certificate/9747/4 "2018-02-08T10:27:55Z")

</div>

I also got the same trouble.  
Then I found this topic.  
But the link you show is already been dead!  
Is [http://plugins.drone.io/drone-plugins/drone-git/](http://plugins.drone.io/drone-plugins/drone-git/) the new URL of the document?  
And, adding this snippet to .drone.yml fixes the problem, right?

```
clone:
  git:
    image: plugins/git
    skip_verify: true
```
