GitLab Pages installer plugin for Certbot
certbot-gitlab is an installer plugin for Certbot. It allows you to automate the installation of certificates issued to GitLab Pages domains.
You still need to use a separate authenticator plugin. Read this for more information on how installer and authenticator plugins.
Installation
sudo pip install certbot-gitlab
Usage
Obtain as access token
Create an access token on GitLab with the api scope.
Basic Example
certbot --installer certbot-gitlab:gitlab
This will run Certbot interactively and allow you to choose your specific authentication method.
It will also ask for your GitLab access token. This won't be saved, so automatic renewal (via certbot renew) won't work. See Credentials File for how to automate renewal.
If you don't want automatic authentication, then add --authenticator manual --preferred-challenges dns to use manual DNS TXT record authentication.
Credentials File
certbot --installer certbot-gitlab:gitlab --certbot-gitlab:gitlab-token '/path/to/gitlab/token/file'
This will take the GitLab access token from /path/to/gitlab/token/file, which should contain just the access token, such as:
MY_GITLAB_TOKEN
IMPORTANT: Make sure this file is in a secure location (such as /root/ or /etc/letsencrypt/keys/ and that it can only be read by root.
chown root:root '/path/to/gitlab/token/file'
chmod 600 '/path/to/gitlab/token/file'
The path to this file will be saved for automatic renewal, so running certbot renew will automatically install the certificate to GitLab when renewed.
All Options
--certbot-gitlab:gitlab-server CERTBOT_GITLAB:GITLAB_SERVER
GitLab server url (default: https://gitlab.com)
--certbot-gitlab:gitlab-config CERTBOT_GITLAB:GITLAB_CONFIG
python-gitlab configuration file (default: None)
--certbot-gitlab:gitlab-token CERTBOT_GITLAB:GITLAB_TOKEN
GitLab API token (default: None)
--certbot-gitlab:gitlab-project CERTBOT_GITLAB:GITLAB_PROJECT
Name of GitLab project (e.g. user/proj) (default: None)
Read this for how to use --certbot-gitlab:gitlab-config.
Metadata
Release files for certbot-gitlab 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| certbot-gitlab-0.1.0.tar.gz | 3.5 kB | Without provenance | Details for certbot-gitlab-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| certbot_gitlab-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for certbot_gitlab-0.1.0-py2.py3-none-any.whl |
Total release size: 7.7 kB
Release files / certbot-gitlab-0.1.0.tar.gz
| Download URL | certbot-gitlab-0.1.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
369ec13c69ee1e832506f575818f490446d53a7ddb5c2676c3d07b11c3b9ed88
|
|
BLAKE2b-256 checksum How to use checksums |
8f1de35e60f879f1fbca049f0f8790bd18d6dd5104cf8731d7d1cbf98d5dc2a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / certbot_gitlab-0.1.0-py2.py3-none-any.whl
| Download URL | certbot_gitlab-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6d25b919ec64f6bdf21499a5148d1f3db338b8750f6c19d528864fd278a36a08
|
|
BLAKE2b-256 checksum How to use checksums |
02ef3b2e5be61dc05cbd5e24c63905cac306ae612540d32e37d0eed136c808f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for certbot-gitlab 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.