mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
fix: parse public key as fallback for certificate for bearer authentication (#3180)
* fix: parse public key as fallback for bearer auth Signed-off-by: evanebb <git@evanus.nl> * fix: use correct error message Signed-off-by: evanebb <git@evanus.nl> --------- Signed-off-by: evanebb <git@evanus.nl>
This commit is contained in:
@@ -19,6 +19,16 @@ openssl req \
|
||||
-out server.csr \
|
||||
-subj "/OU=TestServer/CN=*"
|
||||
|
||||
openssl rsa \
|
||||
-in server.key \
|
||||
-pubout \
|
||||
-out server-public.key
|
||||
|
||||
openssl rsa \
|
||||
-in server.key \
|
||||
-RSAPublicKey_out \
|
||||
-out server-public-pkcs1.key
|
||||
|
||||
openssl x509 \
|
||||
-req \
|
||||
-days 3650 \
|
||||
@@ -76,6 +86,11 @@ openssl req \
|
||||
-out server-ecdsa.csr \
|
||||
-subj "/OU=TestServer/CN=*"
|
||||
|
||||
openssl ec \
|
||||
-in server-ecdsa.key \
|
||||
-pubout \
|
||||
-out server-public-ecdsa.key
|
||||
|
||||
openssl x509 \
|
||||
-req \
|
||||
-days 3650 \
|
||||
@@ -112,6 +127,11 @@ openssl req \
|
||||
-out server-ed25519.csr \
|
||||
-subj "/OU=TestServer/CN=*"
|
||||
|
||||
openssl pkey \
|
||||
-in server-ed25519.key \
|
||||
-pubout \
|
||||
-out server-public-ed25519.key
|
||||
|
||||
openssl x509 \
|
||||
-req \
|
||||
-days 3650 \
|
||||
|
||||
Reference in New Issue
Block a user