# Rancher 2.0 CA root certificates

**URL:** <https://forums.suse.com/t/rancher-2-0-ca-root-certificates/11550>\
**Category:** SUSE Rancher Prime\
**Created:** [August 22, 2018, 6:17am UTC](https://forums.suse.com/t/rancher-2-0-ca-root-certificates/11550 "2018-08-22T06:17:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dommgifer](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@dommgifer](https://forums.suse.com/u/dommgifer)\
**Post date:** [August 22, 2018, 6:17am UTC](https://forums.suse.com/t/rancher-2-0-ca-root-certificates/11550/1 "2018-08-22T06:17:32Z")

</div>

I used java to call Rancher 2.0 API,

But got error message: " unable to find valid certification path to requested target".

It’s about ssl key problem.

Where is rancher 2.0 default CA root certificates ?

I want to add ssl key to java keystore.

---

<div class="post-metadata">

**Author:** ![Sarge](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@Sarge](https://forums.suse.com/u/Sarge)\
**Post date:** [August 23, 2018, 9:24pm UTC](https://forums.suse.com/t/rancher-2-0-ca-root-certificates/11550/2 "2018-08-23T21:24:40Z")

</div>

I’m not 100% sure, but try looking in  
/etc/rancher/ssl inside the container

To solve this problem we went down the path of getting a “real” cert from a cert provider and using that for our Rancher server. You can then map it during Rancher startup like this

`sudo docker run -d \`  
`` `--restart=unless-stopped \`  
`` `--name rancher \`  
`` `--log-driver json-` `file``\`  
`` `--log-opt max-size=100m \`  
`` `--log-opt max-` `file` `=3 \`  
`` `-p 80:80 -p 443:443 \`  
`` `-e HTTP_PROXY=` `"http://wall.ad.selinc.com:8080/"``\`  
`` `-e HTTPS_PROXY=` `"http://wall.ad.selinc.com:8080/"``\`  
`` `-e NO_PROXY=` `"localhost,127.0.0.1,0.0.0.0,localaddress,selinc.com,10.0.0.0/8"``\`  
`` `-` `v``/var/lib/rancher` `:` `/var/lib/rancher``\`  
`` `-` `v``/etc/rancher/ssl/cert` `.pem:` `/etc/rancher/ssl/cert` `.pem \`  
`` `-` `v``/etc/rancher/ssl/key` `.pem:` `/etc/rancher/ssl/key` `.pem \`  
`` `sel-docker.artifactory.metro.ad.selinc.com` `/rancher/rancher` `:v2.0.8-rc1 --no-cacerts`
