-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FABN-897] fabric-ca-client enroll with csr
allow the fabric-ca-client to accept a csr at enroll() Change-Id: I9f9645a9c4c4592ff2d644982eda139b66329079 Signed-off-by: zhaochy <[email protected]>
- Loading branch information
1 parent
83fedc9
commit 54fa5cf
Showing
6 changed files
with
196 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
this folder contains the test fixtures for fabric ca integration tests. | ||
|
||
The file test.csr and test.key are generated for testing enroll a user with a csr | ||
|
||
test.csr is the certificate signing request to be sent to fabirc-ca by the API: FabricCAService.enroll() | ||
test.key is the corresponding private key for this user | ||
|
||
The test.key and test.csr are generated by this `openssl` command. | ||
``` | ||
openssl req -nodes -newkey rsa:2048 -keyout test.key -out test.csr | ||
``` | ||
|
||
The necessary information for creating this CSR is: | ||
|
||
Common Name: aTestUser | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
-----BEGIN CERTIFICATE REQUEST----- | ||
MIICzjCCAbYCAQAwgYgxCzAJBgNVBAYTAkNOMRIwEAYDVQQIDAlTaGFuZyBIYWkx | ||
EjAQBgNVBAcMCVNoYW5nIEhhaTETMBEGA1UECgwKVW1hcmtjbG91ZDEMMAoGA1UE | ||
CwwDRGV2MRIwEAYDVQQDDAlhVGVzdFVzZXIxGjAYBgkqhkiG9w0BCQEWC3h4eEB4 | ||
eHguY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq/5e1+PT4ywm | ||
psBhtjVYeGm72B7G2I2+vPhZ2bDiS7kWJ00Eaw9S6xGGh28zXMLoW1ABQzj6J0eb | ||
iqXe6proIhGB4E24KBzhx6ZGVzccaoVEoGNq0OQV98C/jhZ0RrcubxKFT9TC8h3V | ||
VUpdsQP2D3QQgUjwUqUsFAZtg/qn2wtydWCw9FTfnUCUwfhfawS6pPxF3MLXN4Re | ||
iUWZeUunmTFGBX1cnOph1hZd8MLXDKfjvpibpnJO+KUWAWiejzije1TMAT09s9ln | ||
wA7U4t8+wEaxPpdUz8E0M60W8t8p3KSvy38at1hDA8Qa3PaT54NJgH3HHVSoyg19 | ||
qYC1O03BrQIDAQABoAAwDQYJKoZIhvcNAQELBQADggEBAIKZUvnzOwRoP3WBIcON | ||
T6F3PVDpWSRL0T1RG6RqMs1+mTTfwBDWmWQcdEIgj5+YaF3UmdxFos82U3kSxIaT | ||
wnbLo/hLj9HTNknihFMTopS67BaLyPXdiR13d9YTBZYar831gR8MHKBDCRVFjCYL | ||
zRIZ1NvK/Tv+eeQ4CazCWEZ1yryasjibq8tZ5ByfC0bC0dzDhv317VTXhwK+RKXH | ||
eH4Ne4bxWWJFszyWEFvl3Q5Z02+SxtcU8Nsgr5rnUsOIO7jH+lOGrjZJX2s8oc5Q | ||
+gZKdFkAx7GQUMjgHdOF9MV0ckgRrmPT/ymkVPEz/rKSA/O0AiQgipeWIPLPsgGN | ||
gAY= | ||
-----END CERTIFICATE REQUEST----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIEvAI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S6khn8A | ||
Gf2JHr5s0zOOioSe+eulE2FOQtoehMUK3IW3RHWUsF5fVSM+976Py44AF0wbfgLJ | ||
n+hCDqmvQQKBgH/kYtk3BA/HR77jpHHtItjlZRttj+DusevqWcN3OI1YsRYuK1zm | ||
zzPHnEepvhE9xEiAXYUemd0Jqmq/4c4oMcXVehND/l6SwpJOLGn7dLpRVOZlMYUV | ||
zCNAEp/oSan650MrwwwykG7nVNQbpzze2N4OI9D8Z6++P8PQeLt+HUytAoGAZoH+ | ||
2MTUixc28RB1y4mrVNQtzMhPciry7sONtq+biMk8wR+MzjDogMl7OmshtIIItSE3 | ||
qgfoBZ9KwGFgYwryqvZeGyhxa9yFbhmb1eR0h8fUv5fCPLcIfsIgONDU+CaHa5GC | ||
C5Tun+9zCMR/cCF9mkn2LRmC9u/amif8rtcITYECgYA92PDXURfoQMFBHIPZ01bO | ||
G27pi4YAhOSiAvr58w46okqOzCD+gS7hDw3jZOl/y2j+3N1hKkhWqY5mSZhT4eQx | ||
UbAb9jUYE3//CjeK1vKFTknjQjUrD5Z3JD6Dh2RMT4olJuYSRtyjACS5CccUclDy | ||
IhR+2kbCBC2gkX7c8TKuZw== | ||
-----END PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters