autocert | kubernetes add-on that automatically injects TLS | TLS library
kandi X-RAY | autocert Summary
kandi X-RAY | autocert Summary
Autocert is a kubernetes add-on that automatically injects TLS/HTTPS certificates into your containers. To get a certificate simply annotate your pods with a name. An X.509 (TLS/HTTPS) certificate is automatically created and mounted at /var/run/autocert.step.sm/ along with a corresponding private key and root certificate (everything you need for mTLS). We ️ feedback. Please report bugs & suggest enhancements. Fork and send a PR. Give us a if you like what we're doing.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of autocert
autocert Key Features
autocert Examples and Code Snippets
Community Discussions
Trending Discussions on autocert
QUESTION
ANSWER
Answered 2021-Mar-12 at 09:05If you are just starting with GKE I recommend you to just create the service and deployment and use the UI to create the ingress and the managed certs
I created and deploy a sample application:
Code in main.go
QUESTION
The full error message is:
403 urn:acme:error:unauthorized: Account creation on ACMEv1 is disabled. Please upgrade your ACME client to a version that supports ACMEv2 / RFC 8555. See https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430 for details
And I've googled this and reviewed that link, but I'm just using:
golang.org/x/crypto/acme/autocert
package in a very normal way:
...ANSWER
Answered 2020-Jun-23 at 22:23This statement:
In fact this code has been running and working fine for the last 6 months. But just today I switched the server it was on and now get the above message.
Might indicate that you're building against an older version of golang.org/x/crypto
- check your go.mod
file and ensure you're using a fairly recent version. I completed a project recently that uses almost identical code. The require
in my go.mod
looks like this:
QUESTION
Regarding Letsencrypt and go autocert - I am asking here as I see autocert being a go package( Please direct or correct me.)
Will golang.org/x/crypto/acme/autocert
renew certificate automatically, or should you:
- make a timer,
- check date
- Renew(before expire
ANSWER
Answered 2020-Jun-16 at 10:10Looking at https://github.com/golang/crypto/blob/70a84ac30bf957c7df57edd1935d2081871515e1/acme/autocert/autocert.go#L132 it seems this'll auto renew based on the duration you specify.
QUESTION
I tried running this example code from the autocert documentation, changing it to use my domain:
...ANSWER
Answered 2020-Feb-27 at 06:01On CloudFlare, go to SSL/TLS and then the Origin Server tab. Click the Create Certificate button and they'll make one for you for free. You can use that to work with their Full (strict) encryption setting.
QUESTION
I'm local on Mac OS 10.14.6 using Angular 8, Symfony 4.3 and mercure 0.72 darwin. I'm quite new to symfony. I wanted to dispatch updates only to authorized clients on my local machine. So far it really is a big pain. I hope I can find some help or answers here.
Last error I get is
http: TLS handshake error from ip:55289: acme/autocert: unable to authorize "mydyndns-url.com"; challenge "http-01" failed with error: acme: authorization error for mydyndns-url.com: 400 urn:acme:error:connection: Fetching http://mydyndns-url.com/.well-known/acme-challenge/SomeHash: Error getting validation data; challenge "tls-alpn-01" failed with error: acme: authorization error for mydyndns-url.com: 400 urn:acme:error:connection: Connection refused
plus
...ANSWER
Answered 2019-Nov-07 at 08:44OK, I managed to solve it (not perfect yet, but running, and it's for development only anyway).
- Of course I generated my JWT https://jwt.io/#debugger-io
- Followed the mercure setup for symfony https://symfony.com/doc/current/mercure.html#running-a-mercure-hub
- In Symfony installed
composer require symfony/mercure-bundle
- I got my self a dyndns with a wildcard from https://www.dynu.com/
- I configured my router (
fritzbox
) toforward port 80 and 443
http. (temporarily, for the certbot certificate creation only !!!) - I called
sudo ifconfig lo0 alias [public IP] up
- I added three subdomains of my dyndns domain to my /etc/hosts file
(client.mydomain.dynu.org,api.mydomain.dynu.org,hub.mydomain.dynu.org)
bound to my public IP. - I used letsencrypt certbot with
sudo certbot certonly --standalone
and created one cert for 4 domains(client.mydomain.dynu.org,api.mydomain.dynu.org,hub.mydomain.dynu.org,mydomain.dynu.org)
- I then changed my /etc/hosts file and bound all 4 domains to 127.0.0.1
- I configured my apache to load the proxy plugins
QUESTION
I have a flutter app (dart based) and a GoLang server, using GRPC.
I wanted to secure it, so I tried setting up Ngninx
with certbot
(I'm new at this), but the bot requires a challenge where it connects to the Web service (for the Domain) for an http response, which my service doesn't give. It is possible to run both GRPC and HTTP server on the same port, but I couldn't understand how to setup Nginx
for that.
Then I tried setting up TLS for my service itself using autocert
but doing that with acme requires the same web service response and without that I have to give manual certificates and skip insecure verify which isn't available in dart for now (only two options available secure
and insecure
). And testing autocert
on local doesn't help either as it doesn't even create local certs (at least for me).
I also read about a DNS challenge which requires a DNS TXT record, but I'm not sure if it'll ask me to put up a new TXT record on every renewal.
Anyway, I'm mostly confused as to how to move forwards with this. I connect with GRPC to actual mobile apps and haven't found many tutorials or questions regarding this anywhere. My GoLang server also interacts with other internal micro-services, so making it TLS supported would also mean redeploying all other services with secure flag enabled.
Any help regarding what I should do to secure my GRPC connection to apps, would be amazing!
Relevant docs:
- https://www.nginx.com/blog/nginx-1-13-10-grpc/
- https://godoc.org/golang.org/x/crypto/acme/autocert
- https://serverfault.com/questions/750902/how-to-use-lets-encrypt-dns-challenge-validation
- https://d3void.net/post/acme/
Apologies if this is a stupid question, but I've been stuck on this for a week.
...ANSWER
Answered 2019-May-06 at 09:41Just posting what I ended up doing for my setup. Nginx does support GRPC with version 1.3.10+ but requires a lot of manual work and a cron job to auto renew certificates, and it lacked documentation for a how-to.
I ended up using Traefik instead, I've documented the whole process and why I chose Traefik on a blog post here
In short, Traefik allowed for a simpler setup and very detailed GRPC documentation to get started. Another plus was it runs inside of a docker itself, so could easily test on my mac for the same version I'd deploy on the servers. It provided auto cert renewal in the box and with a DNS challenge, I could easily verify the domains.
Sample TOML
file for TLS termination at the reverse proxy end, for GRPC and normal REST services, supporting http
(for older apps) & https
.
QUESTION
Is it possible to fit a m.GetCertificate into a GRPC client / server?
...ANSWER
Answered 2018-Apr-18 at 20:21Hopefully this will be helpful:
Documentation: https://github.com/grpc/grpc-go/blob/master/Documentation/grpc-auth-support.md
Example Code: https://github.com/grpc/grpc-go/tree/master/examples/oauth
QUESTION
I am writing a program in go which makes an HTTP request to different server and reads the response. The program works absolutely fine on Windows/Mac but when I run the program on ARM based Rasp Pi 3 with Rasbian OS, it fails.
Every-time I try to build the code it throws this error, could any suggest what I am doing wrong here?
...ANSWER
Answered 2018-Dec-17 at 13:30Make sure to use the same Go version as the other platforms. Some features may have been added in a newer version.
QUESTION
I have two separate servers using the same domain name with separate prefixes, one doing some app stuff and one doing filesharing. Using the autocert
package how can I just configure the cert manager to produce a certificate that I can use on both servers?
ANSWER
Answered 2018-Nov-28 at 16:59Add both domains to the cert manager white list:
QUESTION
I'm building currently a service that uses acme/autocert. To use that service with more than 1 replicas, I had to write a persistent cache interface like DirCache. Then I noticed, that after restarting the service all valid certs in the Cache got ignored on the startup. The following sequence happens all the time:
- Cache put acme_account+key (even if it exists in the cache)
- Cache get acme_account+key
- Cache get my.domain.net (it returns the cached cert)
- Cache get acme_account+key
- Cache put my.domain.net+token
- Cache put HASH+http-01
- Cache delete HASH+http-01
- Cache delete my.domain.net+token
- Cache put my.domain.net (put the new cert)
Is this the correct behavior? Because every replica would create its own cert and a persistent Cache is not possible with this circumstances
Here is my manager factory
...ANSWER
Answered 2018-Nov-21 at 11:46The solution for this question is that the cache interface and behavior works correctly. My cache implementation was faulty. I had a goroutine within the Cache.Get(...) that read from a DB to a channel, but unfortunately the outer func body did not wait for that channel and returns always a CacheMissed error. After the fix everything works fine. My fault sry
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install autocert
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page