-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://jira.hyperledger.org/browse/FAB-1465 This is implements the intermediate CA server support for fabric-ca-server. If the "-u <parentURL>" option is used for "fabric-ca-server init" or "fabric-ca-server start" commands and the CA cert and key have not yet been generated, the server acts as an intermediate CA and gets it's certificate from the parent server. This must be done with an identity which has the "hf.IntermediateCA" attribute. The main logic to get the server's CA cert and key are in the getCACertAndKey function in lib/server.go. It is this function which checks for the parentServerURL. Note that in this case, the server uses its client object to enroll with the parent server, just as a standalone client does. Note the addition of the csrAuthCheck function in lib/serverenroll.go file. If the request is for a CA certificate, the "hf.IntermediateCA" attribute is required by the caller. See TestIntermediateServer in lib/server_test.go for the test case. Change-Id: Ifefc304627b58ec1fdc5fac9ebf5e9415483de4c Signed-off-by: Keith Smith <[email protected]>
- Loading branch information
Keith Smith
committed
Feb 23, 2017
1 parent
972143e
commit 3f8445a
Showing
12 changed files
with
295 additions
and
98 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
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
Oops, something went wrong.