# Certificate for an internal server (only open from office)

**URL:** https://community.letsencrypt.org/t/certificate-for-an-internal-server-only-open-from-office/16515
**Category:** Server
**Created:** [June 2, 2016, 4:38pm UTC](https://community.letsencrypt.org/t/certificate-for-an-internal-server-only-open-from-office/16515 "2016-06-02T16:38:28Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![lseo](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@lseo](https://community.letsencrypt.org/u/lseo)
#### Post date: [June 2, 2016, 4:38pm UTC](https://community.letsencrypt.org/t/certificate-for-an-internal-server-only-open-from-office/16515/1 "2016-06-02T16:38:28Z")

</div>

Hello,

My company have server to host application for internal use only. So this server is on internet but IP are restricted only from office.

Is it possible to use Let’s Encrypt to have Https ? I ask that because in the FAQ we can’t know the IP of let’s encrypt so how the validation will be done ?

Thanks a lot.

---

<div class="post-metadata">

### Author: ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)
#### Post date: [June 2, 2016, 6:22pm UTC](https://community.letsencrypt.org/t/certificate-for-an-internal-server-only-open-from-office/16515/2 "2016-06-02T18:22:13Z")

</div>

Has this server got a fully qualified domain name ?

If it is on the internet, but restricted to your office IP, then the easiest is to allow full access to domain/.well-known/acme-challenge for any IP address, but of course restrict other folders to your office IP.

Alternatively, you could perform a DNS challenge rather than a http challenge.

---

<div class="post-metadata">

### Author: ![lseo](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@lseo](https://community.letsencrypt.org/u/lseo)
#### Post date: [June 3, 2016, 7:09am UTC](https://community.letsencrypt.org/t/certificate-for-an-internal-server-only-open-from-office/16515/3 "2016-06-03T07:09:52Z")

</div>

Yes the server got two fully qualified domain name : [gitlab.company.com](http://gitlab.company.com) and [jenkins.company.com](http://jenkins.company.com)

I can’t change the rules of restricted IP because it’s a firewall before my server so I will do it with DNS challenge.

Thanks

---

<div class="post-metadata">

### Author: ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)
#### Post date: [June 3, 2016, 7:36am UTC](https://community.letsencrypt.org/t/certificate-for-an-internal-server-only-open-from-office/16515/4 "2016-06-03T07:36:11Z")

</div>

If you have a look at the [alternate client](https://github.com/certbot/certbot/wiki/Links)s the Bash clients and the Go clients support the DNS challenge.

---

<div class="post-metadata">

### Author: ![lseo](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@lseo](https://community.letsencrypt.org/u/lseo)
#### Post date: [June 3, 2016, 7:56am UTC](https://community.letsencrypt.org/t/certificate-for-an-internal-server-only-open-from-office/16515/5 "2016-06-03T07:56:14Z")

</div>

Thanks no client for my DNS Provider Gandi … so the renew will be done manually.

---

<div class="post-metadata">

### Author: ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)
#### Post date: [June 3, 2016, 8:39am UTC](https://community.letsencrypt.org/t/certificate-for-an-internal-server-only-open-from-office/16515/6 "2016-06-03T08:39:11Z")

</div>

From a quick look - [https://wiki.gandi.net/en/xml-api](https://wiki.gandi.net/en/xml-api) - gandi has a perfectly good API for dns records, so you should be able to use the DNS method.

---

<div class="post-metadata">

### Author: ![lseo](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@lseo](https://community.letsencrypt.org/u/lseo)
#### Post date: [June 3, 2016, 9:01am UTC](https://community.letsencrypt.org/t/certificate-for-an-internal-server-only-open-from-office/16515/7 "2016-06-03T09:01:00Z")

</div>

> [@serverco](#):
>
> a quick look - [\<no title\> — Gandi Documentation documentation](https://wiki.gandi.net/en/xml-api) - gandi has a perfectly good API for dns records, so you should be able to use the DNS method.

yes but I need to develop the interface 😉

---

<div class="post-metadata">

### Author: ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)
#### Post date: [June 3, 2016, 9:05am UTC](https://community.letsencrypt.org/t/certificate-for-an-internal-server-only-open-from-office/16515/8 "2016-06-03T09:05:14Z")

</div>

You only have to write about a dozen lines for that I think. If I get chance later I’ll take a quick look.

---

<div class="post-metadata">

### Author: ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)
#### Post date: [June 3, 2016, 9:15am UTC](https://community.letsencrypt.org/t/certificate-for-an-internal-server-only-open-from-office/16515/9 "2016-06-03T09:15:58Z")

</div>

looking at the [go alternate clients](https://github.com/certbot/certbot/wiki/Links#go) - the Lego one already supports gandi dns challenge.

---

<div class="post-metadata">

### Author: ![lseo](https://avatars.discourse-cdn.com/v4/letter/l/4491bb/32.png) [@lseo](https://community.letsencrypt.org/u/lseo)
#### Post date: [June 3, 2016, 11:55am UTC](https://community.letsencrypt.org/t/certificate-for-an-internal-server-only-open-from-office/16515/10 "2016-06-03T11:55:28Z")

</div>

> [@serverco](#):
>
> rfectly good API for dns records, so you should be able to use the DNS method.

nice !!  
Thanks for your help

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)
#### Post date: [July 3, 2016, 11:55am UTC](https://community.letsencrypt.org/t/certificate-for-an-internal-server-only-open-from-office/16515/11 "2016-07-03T11:55:33Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
