Skip to content

Commit a80a173

Browse files
authored
add digitalSignature usage to the key (#96)
1 parent 0b6584f commit a80a173

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed

CHANGELOG.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ and this project adheres to
1010

1111
---
1212

13+
## [0.8.1] - 2024-10-17
14+
15+
# Fixed
16+
17+
- Chrome ERR_SSL_KEY_USAGE_INCOMPATIBLE due to the key usage not being configured.
18+
19+
---
20+
1321
## [0.8.0] - 2024-08-28
1422

1523
- Improve documentation about how to configure Localauth0 in docker.
@@ -184,7 +192,9 @@ Note: images temporairly use the public.ecr.aws/c6i9l4r6/localauth0 registry.
184192

185193
- First release 🎉
186194

187-
[Unreleased]: https://github.com/primait/localauth0/compare/0.8.0...HEAD
195+
196+
[Unreleased]: https://github.com/primait/localauth0/compare/0.8.1...HEAD
197+
[0.8.1]: https://github.com/primait/localauth0/compare/0.8.0...0.8.1
188198
[0.8.0]: https://github.com/primait/localauth0/compare/0.7.2...0.8.0
189199
[0.7.2]: https://github.com/primait/localauth0/compare/0.7.1...0.7.2
190200
[0.7.1]: https://github.com/primait/localauth0/compare/0.7.0...0.7.1

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
edition = "2021"
33
name = "localauth0"
4-
version = "0.8.0"
4+
version = "0.8.1"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tenant and test it offline for "real".
2727
In order to run localauth0 docker image execute the following:
2828

2929
```shell
30-
docker run -d -p 3000:3000 public.ecr.aws/primaassicurazioni/localauth0:0.8.0
30+
docker run -d -p 3000:3000 public.ecr.aws/primaassicurazioni/localauth0:0.8.1
3131
```
3232

3333
By default, the container exposes an http server on the port 3000 and an https
@@ -247,7 +247,7 @@ Add this snippet to your `docker-compose.yml` file and reference it in your app
247247

248248
```yaml
249249
auth0:
250-
image: public.ecr.aws/primaassicurazioni/localauth0:0.8.0
250+
image: public.ecr.aws/primaassicurazioni/localauth0:0.8.1
251251
healthcheck:
252252
test: ["CMD", "/localauth0", "healthcheck"]
253253
ports:

src/model/certificates.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ pub fn generate_certificate(key_pair: &PKey<Private>) -> Result<X509, Error> {
3838
cert_builder.set_not_after(&not_after)?;
3939

4040
cert_builder.append_extension(BasicConstraints::new().critical().ca().build()?)?;
41-
cert_builder.append_extension(KeyUsage::new().critical().key_cert_sign().crl_sign().build()?)?;
41+
cert_builder.append_extension(
42+
KeyUsage::new()
43+
.critical()
44+
.key_cert_sign()
45+
.crl_sign()
46+
.digital_signature()
47+
.build()?,
48+
)?;
4249

4350
let subject_key_identifier = SubjectKeyIdentifier::new().build(&cert_builder.x509v3_context(None, None))?;
4451
cert_builder.append_extension(subject_key_identifier)?;

0 commit comments

Comments
 (0)