Commit Graph

1291 Commits (a78f7e8913d0154b480e8b86aca33d4da10dd174)
 

Author SHA1 Message Date
Max ae15573f93
Merge pull request #249 from smallstep/clive-jevons/dynamic-host-detection-for-acme-directory
dynamic host detection for acme directory

Closes #235, #193
4 years ago
max furman e1409349f3 Allow relative URL for all links in ACME api ...
* Pass the request context all the way down the ACME stack.
* Save baseURL in context and use when generating ACME urls.
4 years ago
Oleksandr Kovalchuk 0218018cee
Generate Subject if `forceCN` and Subject is empty
When `forceCN` is set in provisioner configuration and
Subject.CommonName is empty, set Subject.CommonName to the first SAN
from the CSR to follow the letsencrypt's boulder behavior. This is done
in order to support system which require certificate's Subject field to
be non-empty.

N.B. certbot does not send Subject in its certificate request and relies
on similar behavior of letsencrypt.

Closes https://github.com/smallstep/certificates/issues/259
4 years ago
Oleksandr Kovalchuk 503c9f6101
Add config option to force CN
Add configuration option `forceCN` to ACME provisioner. When this option
is set to `true`, provisioner should generate Subject.CommonName for
certificate if it was not present in the request. Default value of
`false` should keep the existing behavior (do not modify CSR and
certificate).

Ref: https://github.com/smallstep/certificates/issues/259
4 years ago
Clive Jevons 639993bd09 Read host and protocol information from request for links
When constructing links we want to read the required host and protocol
information in a dynamic manner from the request for constructing ACME
links such as the directory information. This way, if the server is
running behind a proxy, and we don't know what the exposed URL should
be at runtime, we can construct the required information from the
host, tls and X-Forwarded-Proto fields in the HTTP request.
Inspired by the LetsEncrypt Boulder project (web/relative.go).
4 years ago
Mariano Cano 025c0aa20f Display the proper yubikey uri. 4 years ago
Mariano Cano 22b86c3fcc Only rewrite keys with --force. 4 years ago
Mariano Cano 63e36ecd7a Refactor the initialization of KeyManagers. 4 years ago
Max f126962f3f
Merge pull request #257 from smallstep/max/accUpd
ACME accountUpdate ignore fields not recognized by the server.
4 years ago
max furman 4cb777bdc1 ACME accountUpdate ignore fields not recognized by the server. 4 years ago
Mariano Cano c02fe77998 Close the key manager before shutting down. 4 years ago
Mariano Cano 029483463b Remove extra +build statement. 4 years ago
Mariano Cano ef2b13b163 Add step-yubikey-init as a target. 4 years ago
Mariano Cano 677e99793e Create alternative yubikey file when cgo is not enabled.
This yubikey will always fail.
4 years ago
Mariano Cano 6868190fff Add initial support for yubikey. 4 years ago
Mariano Cano 9f1d95d8bf Fix renew of certificate at the start of the server. 4 years ago
Mariano Cano e855707dc2
Merge pull request #248 from smallstep/embedded-config-init
Initialize the required config fields on embedded authorities
4 years ago
Mariano Cano 4e544344f9 Initialize the required config fields on embedded authorities.
This change is to make easier the use of embedded authorities. It
can be difficult for third parties to know what fields are required.
The new init methods will define the minimum usable configuration.
4 years ago
Mariano Cano 9499aed6d1
Merge pull request #247 from smallstep/embedded-authority
Create a method to initialize the authority without a config file
4 years ago
Mariano Cano b5eab009b2 Rename method to NewEmbedded 4 years ago
Mariano Cano 824374bde0 Create a method to initialize the authority without a config file.
When the CA is embedded in a third party product like Caddy, the
config needed to use placeholders to be valid. This change adds
a new method `NewEmbeddedAuthority` that allows to create an
authority with the given options, the minimum options are a root
and intermediate certificate, and the intermediate key.

Fixes #218
4 years ago
max furman ca0861bf17 Add documentation for running HA 4 years ago
max furman 083abf5150 Fix a bit of getting started doc syntax 4 years ago
max furman 8227449746 Add docs for ssh cert duration for authority config.
Fixes #238.
4 years ago
max furman c1a84c1405 go mod tidy 4 years ago
max furman 1b6bf38b52 Bump cli to v0.14.3 4 years ago
max furman d40c029582 Fix docs database link. 4 years ago
max furman 30e38dc501 Bumpt the version of cli for a certificates RC. 4 years ago
Mariano Cano df3b9f637e Use a tagged version of nosql. 4 years ago
Mariano Cano 18869323f4
Merge pull request #234 from smallstep/oidc-multinenant
Add support for multi-tenant OIDC provisioners
4 years ago
Mariano Cano 4e9bff0986 Add support for OIDC multitoken tenants for azure. 4 years ago
Mariano Cano c7907a4626
Merge pull request #233 from smallstep/oidc-add-user-cert
Add support for user provisioner certificates on OIDC provisioners.
4 years ago
Mariano Cano 8bc3b05232 Add new extra test case. 4 years ago
Mariano Cano b0ff731d18 Add support for user provisioner certificates on OIDC provisioners.
OIDC provisioners create an SSH certificate with two principals. This
was avoiding the creationg of user provisioner certificates for those
provisioners.

Fixes smallstep/cli#268
4 years ago
Max 59a57d487b
Merge pull request #232 from wishdev/fingerprint
Add root fingerprint to pki if certificate given
4 years ago
John W Higgins d1f78cf6d2 Add root fingerprint to pki if certificate given
If a root certificate is provided to init an authority the fingerprint
is not currently stored in the default.json file. This patch simply
stores the fingerprint of the supplied certificate.
4 years ago
Max 00998d053d
Merge pull request #231 from smallstep/badgerV1+V2
Simultaneous support for Badger V1+V2 and ...
5 years ago
max furman 95b931bb52 Increase linter timeout limit ...
* Breaking in Travis
5 years ago
max furman 1a34e64c65 Try old method of installing golang linter ...
* Method from docs is broken in travis.
5 years ago
max furman a179a72342 Update installer location of golangci-lint. 5 years ago
max furman 3c0970c28a Bump golangci-lint to v1.24.0 5 years ago
max furman 3be95a82d0 Update version of nosql. 5 years ago
Mariano Cano 7861069018 Fix command in distribution.md. 5 years ago
max furman d51f254ee4 ValueLogLoadingMode -> FileLoading Mode badger 5 years ago
Mariano Cano 2993ccf16d
Merge pull request #230 from smallstep/empty-common-names
Remove the requirement for CSR to have a common name
5 years ago
Mariano Cano a2dfa6faa8 Fix unit tests. 5 years ago
max furman 0573c00bd3 Simultaneous support for Badger V1+V2 and ...
* valueLogLoadingMode config for low RAM badger environments
5 years ago
Mariano Cano 13507efb35 Remove the requirement for CSR to have a common name.
Fixes #226
5 years ago
Mariano Cano bcc5a91d17
Merge pull request #227 from smallstep/disable-forward-agent
Do not enable by default ForwardAgent
5 years ago
Mariano Cano 02ed784a9b Do not enable by default ForwardAgent. 5 years ago