Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to generate server and client certfile, keyfile? #6

Closed
wants to merge 345 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
345 commits
Select commit Hold shift + click to select a range
c949864
Merge "Case sensitivity for MySQL users table"
hacera-jonathan Mar 29, 2017
a64ea74
Don't print usage message for non-usage errors
Mar 22, 2017
bad8552
Merge "Don't print usage message for non-usage errors"
hacera-jonathan Mar 29, 2017
77dc0ce
Merge "Improvement to TLS configurations"
christo4ferris Mar 31, 2017
bd594b5
Failing util_test.go -- need to unset CA_CFG_PATH
rennman Apr 4, 2017
f6fc6e8
Update run_ldap library directory for [FAB-1485]
rennman Apr 5, 2017
54a8729
Delete obsolete authentication test
rennman Apr 5, 2017
d10fd42
[FAB-2571] Create docker image for fvt testing
rennman Apr 5, 2017
5a07ff7
[FAB-2571] Change client/server executable names
rennman Apr 5, 2017
4997ae7
[FAB-2571] Generate config for both init and start
rennman Apr 5, 2017
20a1b7a
FAB-[2571] use variable database name
rennman Apr 5, 2017
06bb12f
[FAB-2572] Update client/server TLS setting
rennman Apr 5, 2017
4456f65
[FAB-2571] - Remove local install of fabric prereq
rennman Apr 5, 2017
bfacafe
[FAB-2571] - Update group test
rennman Apr 5, 2017
7b9eb18
[FAB-2571] - Update reenroll test
rennman Apr 5, 2017
05cbac8
[FAB-2571] Update reregister test
rennman Apr 5, 2017
e909700
[FAB-2571] Update roundrobin test
rennman Apr 5, 2017
a8f1d79
[FAB-2571] Update enrollment test
rennman Apr 5, 2017
d9a1724
[FAB-3020] fix client-server-flow doc typo
seprain Apr 6, 2017
ee34334
Merge "Delete obsolete authentication test"
mastersingh24 Apr 6, 2017
ee2ec59
[FAB-2668] Ensure revocation updates DB
rennman Apr 6, 2017
855036c
[FAB-3010] Update the fabric-ca README
Apr 5, 2017
4c3189b
FAB-3007:Make CA name required
Apr 10, 2017
7a4a7f4
[FAB-3038] Fix certificate look up logic
Apr 7, 2017
db76a08
[FAB-3004] Remove extraneous flags
Apr 11, 2017
a3455a9
Merge "[FAB-3010] Update the fabric-ca README"
hacera-jonathan Apr 11, 2017
f95b42c
Merge "Update run_ldap library directory for [FAB-1485]"
hacera-jonathan Apr 11, 2017
d67841e
Merge "[FAB-3038] Fix certificate look up logic"
hacera-jonathan Apr 11, 2017
b31da6b
Fix affiliation hierarchy checking during revoke
Apr 10, 2017
f0f86b7
Client should check TLS cert for valid dates
Mar 23, 2017
1c68d07
[FAB-1467] Allow make without docker
Apr 13, 2017
7f85469
Handle string slices in config appropriately
Apr 4, 2017
269c9ab
Merge "Handle string slices in config appropriately"
christo4ferris Apr 14, 2017
7b356c9
[FAB-1854] Add file names with colons to gitignore
Apr 11, 2017
de11f66
Merge "[FAB-1467] Allow make without docker"
hacera-jonathan Apr 14, 2017
91e4b79
Merge "[FAB-3004] Remove extraneous flags"
mastersingh24 Apr 14, 2017
28197b0
Merge "[FAB-1854] Add file names with colons to gitignore"
hacera-jonathan Apr 14, 2017
de5f4bd
[FAB-3174] Fix compile error in tls.go
Apr 15, 2017
e583181
Merge "FAB-3007:Make CA name required"
mastersingh24 Apr 19, 2017
6d5ae41
[FAB-3061] Persist the ca.name
Apr 19, 2017
7539e33
[FAB-2955] Set max open conn for sqlite to 1
Apr 11, 2017
5dd0561
[FAB-2597] Del cfssl prefix from REST APIs
Apr 18, 2017
75f402c
[FAB-1463] Add TLS support to CA server's LDAP client
Mar 24, 2017
2672dd3
[ FAB-2909 ] Fix failing UT for file name too long
rennman Apr 20, 2017
7382805
Merge "Fix affiliation hierarchy checking during revoke"
christo4ferris Apr 21, 2017
4f472c4
[FAB-2868] Return 401 error for restricted operations
Apr 12, 2017
c93266f
[FAB-2841] Revoke fails if aki,serial and eid are set
Apr 6, 2017
a13fc7c
[FAB-3107] Use 'identity' instead of 'user'
Apr 11, 2017
a7fd36b
Merge "[FAB-3061] Persist the ca.name"
mastersingh24 Apr 22, 2017
1fe87c7
Merge "[FAB-2597] Del cfssl prefix from REST APIs"
jimthematrix Apr 22, 2017
62f8ce8
Merge "[ FAB-2909 ] Fix failing UT for file name too long"
christo4ferris Apr 23, 2017
e816f66
Merge "[FAB-2868] Return 401 error for restricted operations"
mastersingh24 Apr 23, 2017
6679664
Merge "[FAB-3020] fix client-server-flow doc typo"
christo4ferris Apr 23, 2017
93a466e
Merge "[FAB-2571] Change client/server executable names"
christo4ferris Apr 23, 2017
84d2c0b
Merge "[FAB-2571] Generate config for both init and start"
christo4ferris Apr 23, 2017
2afb092
Merge "FAB-[2571] use variable database name"
mastersingh24 Apr 23, 2017
7b77b11
Merge "[FAB-2572] Update client/server TLS setting"
mastersingh24 Apr 23, 2017
5ac949e
Merge changes I0040df55,I85fffa0d
mastersingh24 Apr 23, 2017
9b36a17
Merge "[FAB-2571] Update enrollment test"
mastersingh24 Apr 23, 2017
d69f628
Merge "[FAB-2571] - Update reenroll test"
mastersingh24 Apr 23, 2017
fcb2145
Merge "[FAB-2571] Update roundrobin test"
mastersingh24 Apr 23, 2017
7cb19a0
Merge "[FAB-2571] - Update group test"
mastersingh24 Apr 23, 2017
acc2eb2
Merge "[FAB-2571] Update reregister test"
christo4ferris Apr 23, 2017
09107e7
Merge "Failing util_test.go -- need to unset CA_CFG_PATH"
christo4ferris Apr 23, 2017
8976d7b
[ FAB-1673 ] Integrate fabric/cop fvt in CI
rennman Apr 24, 2017
9f93162
Merge "[FAB-3107] Use 'identity' instead of 'user'"
hacera-jonathan Apr 25, 2017
7122565
Merge "[ FAB-1673 ] Integrate fabric/cop fvt in CI"
christo4ferris Apr 25, 2017
d7a5c29
[FAB-2896] Support multiple CAs - new CA struct
Apr 4, 2017
b4ce73f
[FAB-2896] Create CA configuration struct
Apr 10, 2017
3ab84cb
[FAB-2896] Loading multiple CAs from config files
Apr 6, 2017
d53f934
[FAB-3396] Fixed "index out of range" error
Apr 25, 2017
c131944
[FAB-2896] Directing traffic to specific CAs
Apr 5, 2017
6b961a4
Merge "[FAB-3396] Fixed "index out of range" error"
christo4ferris Apr 27, 2017
d9a1c61
Merge "[FAB-2955] Set max open conn for sqlite to 1"
christo4ferris Apr 27, 2017
d35648a
Merge "[FAB-2896] Directing traffic to specific CAs"
christo4ferris Apr 27, 2017
5610d33
[FAB-2896] Start multiple default CA instances
Apr 7, 2017
1583adf
[FAB-3369] Added missing slice config options
Apr 27, 2017
9c4acfd
[FAB-2601] Fabric CA BCCSP integration utilities
Apr 28, 2017
0d272e6
[FAB-2601] Fabric CA BCCSP integration
Mar 2, 2017
ab83a2e
[FAB-864] Vendor BCCSP from fabric to fabric-ca
Apr 24, 2017
4b58d5c
Merge changes I24feed05,I49176980,Ie2b53fc4,I23fa1f1d
christo4ferris Apr 28, 2017
610a3b9
[ FAB-2896 ] revert blank CA name for tests
rennman Apr 28, 2017
50c540e
[FAB-3503] Wrong MSP keystore directory location
Apr 28, 2017
720d546
Merge "[FAB-1463] Add TLS support to CA server's LDAP client"
christo4ferris Apr 28, 2017
181e03f
Merge "[FAB-3369] Added missing slice config options"
christo4ferris Apr 28, 2017
10a9b73
Merge "[FAB-3503] Wrong MSP keystore directory location"
hacera-jonathan Apr 28, 2017
ecd796a
[FAB-3518] Fix fabric-ca-server build failure
Apr 29, 2017
5af687e
Merge "[ FAB-2896 ] revert blank CA name for tests"
christo4ferris Apr 29, 2017
4f86663
Merge "[FAB-3518] Fix fabric-ca-server build failure"
Apr 30, 2017
34ddbee
[FAB-3433] Short names for flags for revoke command
May 1, 2017
50bbfc7
[FAB-3050] Document serial number of CSR
May 1, 2017
90bd1b6
[ FAB-3554 ] Add make target for local CI tests
rennman May 1, 2017
15bc87e
[ FAB-1892 ] - Add LDAP to fvt test image
rennman May 3, 2017
0624550
[FAB-3191] Ability to enable cpu/heap profiling
Apr 17, 2017
71fa531
Merge "[FAB-3191] Ability to enable cpu/heap profiling"
binhn May 3, 2017
bb17e4e
Merge "[ FAB-3554 ] Add make target for local CI tests"
May 5, 2017
a010ec8
[FAB-3629] Move Fabric-CA doc to fabric-ca repo
May 3, 2017
2fa6143
[FAB-3622] Update API with JSON tag for 'CAName'
May 3, 2017
530b8b8
Merge "[FAB-3622] Update API with JSON tag for 'CAName'"
christo4ferris May 6, 2017
616ccdd
Merge "[FAB-3629] Move Fabric-CA doc to fabric-ca repo"
May 6, 2017
73a4215
Merge "[ FAB-1892 ] - Add LDAP to fvt test image"
mastersingh24 May 7, 2017
34ec53e
[FAB-3574] Perform deep copy of config file
May 2, 2017
92aec7f
Merge "[FAB-3050] Document serial number of CSR"
christo4ferris May 8, 2017
9e41d59
[FAB-3743] Update private key format
yeasy May 9, 2017
ed5ed51
Merge "[FAB-3574] Perform deep copy of config file"
May 9, 2017
c1bb6c4
[FAB-3574] Fix missing CA config values logic
May 2, 2017
94ced50
[FAB-3574] Finish fix of multi CA config
May 4, 2017
97ca16c
Release v1.0.0-alpha2
ghaskins May 12, 2017
52c503b
Prepare for alpha3 development
ghaskins May 12, 2017
f2df727
FAB-3895 add scripts/changelog.sh
christo4ferris May 12, 2017
20b98b6
Merge "[FAB-3574] Finish fix of multi CA config"
mastersingh24 May 13, 2017
f5216c3
Merge "Release v1.0.0-alpha2"
hacera-jonathan May 13, 2017
f6c4283
Merge "Prepare for alpha3 development"
mastersingh24 May 14, 2017
2904d1c
[FAB-3918] Update to baseimage v0.3.1
May 15, 2017
bdefc3a
[FAB-3924] Improved test coverage util package
adecaro May 15, 2017
cb7a109
[FAB-3924] Improved test coverage lib/tls package
adecaro May 15, 2017
4d657bc
[FAB-1823] Perform validation on CA certificate
Apr 12, 2017
6deff4b
Merge "[FAB-1823] Perform validation on CA certificate"
christo4ferris May 16, 2017
9bfde7e
[FAB-3958] Update fabric-ca vendor for BCCSP
troyronda May 16, 2017
52f09ed
[FAB-3121] Improve Intermediate CA error message
May 16, 2017
2b1c309
[FAB-3100] Fix panic in server start
May 4, 2017
de4187b
[FAB-3845] Configuration of intermediate CA via CLI
May 11, 2017
30d5ecf
[FAB-3974] Fix server crash on PKCS8 private key
May 17, 2017
10d8d01
Merge "[FAB-3100] Fix panic in server start"
christo4ferris May 17, 2017
0ee3115
[FAB-3490] fix revoked user enrollment
daologger May 17, 2017
0b31700
Merge "[FAB-3490] fix revoked user enrollment"
christo4ferris May 18, 2017
c200c02
[FAB-3924] fabric-ca-client test coverage >85%
May 16, 2017
55b135d
Merge "[FAB-3845] Configuration of intermediate CA via CLI"
mastersingh24 May 18, 2017
88dc694
[ FAB-4016 ] fix run_fvt_test redirect error
rennman May 18, 2017
6eec8f5
Merge "[FAB-3924] fabric-ca-client test coverage >85%"
christo4ferris May 18, 2017
804eb19
[FAB-4024] Update vendor for Fabric flogging
troyronda May 18, 2017
01d2dd0
[FAB-2976] Server shouldn't create dup affiliations
Apr 5, 2017
2560ffd
[FAB-4015] Fix -M option of fabric-ca-client
May 18, 2017
8206d83
Merge "[FAB-2976] Server shouldn't create dup affiliations"
mastersingh24 May 19, 2017
addef8a
[FAB-3827] CA TLS support broke with BCCSP keys
May 11, 2017
7d680bb
[FAB-4096] Remove openldap tarball
May 22, 2017
e9da2c7
[FAB-3883] Intermediate CA restriction on CN
May 16, 2017
4aead96
Merge "[FAB-4015] Fix -M option of fabric-ca-client"
binhn May 23, 2017
f9de9ab
Merge "[FAB-3121] Improve Intermediate CA error message"
binhn May 23, 2017
6b7fd0e
FAB-4109 add license headers to scripts
christo4ferris May 22, 2017
bae7666
Merge "[FAB-3918] Update to baseimage v0.3.1"
ghaskins May 23, 2017
7870c73
FAB-4127 remove vendored test file
christo4ferris May 23, 2017
853dbd4
Merge "[ FAB-4016 ] fix run_fvt_test redirect error"
christo4ferris May 24, 2017
f450a59
Merge "[FAB-3883] Intermediate CA restriction on CN"
christo4ferris May 24, 2017
4fa7ec0
Merge "[FAB-4024] Update vendor for Fabric flogging"
christo4ferris May 24, 2017
99fd112
[FAB-4017] Duplicate flags registered for 'Hosts'
May 18, 2017
a5ab60d
[FAB-3630] enable RTD build process on fabric-ca
rameshthoomu May 23, 2017
59111e0
Merge "FAB-4127 remove vendored test file"
C0rWin May 24, 2017
d6b97f2
Merge "[FAB-4017] Duplicate flags registered for 'Hosts'"
christo4ferris May 24, 2017
4559758
[ FAB-3924 ] - Additional test coverage for tcert
rennman May 23, 2017
ee71b0a
Merge "FAB-4109 add license headers to scripts"
May 25, 2017
406df3c
Merge "[ FAB-3924 ] - Additional test coverage for tcert"
christo4ferris May 25, 2017
ac8695b
[FAB-4141] Default CA lookup fails
May 25, 2017
1be793d
[FAB-3734] Fix default expiration times
May 19, 2017
dfb555f
[FAB-3425] Fix typo in error messages
May 26, 2017
0dcd514
[FAB-2919] Workaround for panic due to lib bug
May 25, 2017
7f61df1
Merge "[FAB-3827] CA TLS support broke with BCCSP keys"
christo4ferris May 26, 2017
92e13cb
[FAB-3971] Register id with multiple attrs
May 17, 2017
9db5dcb
Merge "[FAB-3630] enable RTD build process on fabric-ca"
mastersingh24 May 26, 2017
00712e7
Merge "[FAB-4096] Remove openldap tarball"
mastersingh24 May 26, 2017
02071d6
Merge "[FAB-2919] Workaround for panic due to lib bug"
christo4ferris May 26, 2017
8884306
Merge "[FAB-3734] Fix default expiration times"
christo4ferris May 26, 2017
5f90dd2
Merge "[FAB-3425] Fix typo in error messages"
christo4ferris May 26, 2017
ec1b059
Merge "[FAB-3971] Register id with multiple attrs"
hacera-jonathan May 26, 2017
791f2ae
[FAB-3759] Fix the msg shown when TLS certs are missing
May 26, 2017
efd537e
[FAB-1989] Fix leaking authority to delegates
May 26, 2017
05749b7
[FAB-4180] fix misspell doc title issue
rameshthoomu May 26, 2017
a406a66
Merge "[FAB-3759] Fix the msg shown when TLS certs are missing"
christo4ferris May 27, 2017
ac2ee79
Merge "[FAB-4180] fix misspell doc title issue"
christo4ferris May 27, 2017
1777996
[FAB-4097] Fix getcacert client command config
May 23, 2017
0f73bdc
[FAB-4209] Fix JSON error in swagger doc
May 30, 2017
5987a8e
[FAB-3683] SIGSEGV seen for MySQL empty certfiles
May 25, 2017
2c45212
Merge "[FAB-4097] Fix getcacert client command config"
christo4ferris May 31, 2017
120b139
[FAB-3011] Fix max enrollment checking logic
Apr 5, 2017
e4e0a0d
Merge "[FAB-3683] SIGSEGV seen for MySQL empty certfiles"
christo4ferris May 31, 2017
42f48d2
[FAB-4188] Documentation updates
May 30, 2017
9ce8536
FAB-4307 add missing CCBY license to all docs
christo4ferris Jun 1, 2017
400f699
Merge "[FAB-3011] Fix max enrollment checking logic"
christo4ferris Jun 2, 2017
5722d96
Merge "[FAB-4188] Documentation updates"
christo4ferris Jun 2, 2017
fdcf1c7
[FAB-4311] Fix duplicated fabric-ca config item
yeasy Jun 2, 2017
600ddf9
Merge "FAB-4307 add missing CCBY license to all docs"
Jun 2, 2017
07f1a83
Merge "[FAB-4311] Fix duplicated fabric-ca config item"
mastersingh24 Jun 2, 2017
22dc710
[FAB-3228] Fix/clarify CA pathlen constraints
May 31, 2017
4435ed8
Merge "[FAB-3743] Update private key format"
mastersingh24 Jun 3, 2017
f963ce8
[FAB-4093] Fix the TLS client using BCCSP
May 30, 2017
a2fb8ea
Merge "[FAB-3228] Fix/clarify CA pathlen constraints"
christo4ferris Jun 5, 2017
03d860d
[FAB-3415] Improve LDAP usage and error handling
May 16, 2017
c9372be
[FAB-4404] Adding CA to server restricted on DN
Jun 6, 2017
6b8c55d
[FAB-4372] Value of attributes are ignored
Jun 5, 2017
3dacc23
FAB-4381 prepare for 1.0.0-beta release
christo4ferris Jun 7, 2017
56cca2e
FAB-4382 prepare for 1.0.0-rc1 development
christo4ferris Jun 7, 2017
60f4fae
[FAB-4484] Fix link to user guide
mastersingh24 Jun 8, 2017
037b407
[FAB-4211] WIP: Allow zero date values MySQL
Jun 9, 2017
25d8150
Merge "[FAB-4372] Value of attributes are ignored"
binhn Jun 9, 2017
7555a9b
Merge "[FAB-4211] WIP: Allow zero date values MySQL"
binhn Jun 9, 2017
ef110bc
[FAB-4507] Token-based authentication issue
Jun 9, 2017
1424b33
[FAB-4515] Fix concurrency issue with enroll
mastersingh24 Jun 10, 2017
989b563
FAB-4572 add missing license headers
christo4ferris Jun 12, 2017
cef4f1f
[FAB-4567] Fix for id attributes security issue
Jun 12, 2017
5180ce7
Merge "[FAB-4567] Fix for id attributes security issue"
christo4ferris Jun 15, 2017
7e72c6e
FAB-3963 add missing license headers
christo4ferris Jun 16, 2017
313d945
[FAB-4826] Token-based auth issue to int server
Jun 16, 2017
d263557
FAB-4861 fix various doc format issues
christo4ferris Jun 19, 2017
20b6552
Merge "FAB-3963 add missing license headers"
C0rWin Jun 19, 2017
0f94067
Merge "FAB-4861 fix various doc format issues"
yacovm Jun 19, 2017
82fad13
[FAB-4856] Only allow TLS 1.2
mastersingh24 Jun 19, 2017
4f4264d
[FAB-4865] NPE occurs on LoadIdentity
Jun 19, 2017
5b7790f
[FAB-4868] Verify key has 'Cert Sign' usage
Jun 20, 2017
699e1b9
[FAB-4864] Doc update for max file descriptors
Jun 19, 2017
ba9c7a8
Merge "[FAB-4864] Doc update for max file descriptors"
mastersingh24 Jun 20, 2017
a71e0f5
[FAB-4887] Server creates unused MSP directory
Jun 19, 2017
1583124
Merge "[FAB-4887] Server creates unused MSP directory"
christo4ferris Jun 21, 2017
adb2484
Merge "[FAB-4868] Verify key has 'Cert Sign' usage"
christo4ferris Jun 21, 2017
5200f07
[FAB-4841] Doc no support for encrypted keys
Jun 21, 2017
486f511
Merge "[FAB-4841] Doc no support for encrypted keys"
christo4ferris Jun 22, 2017
7d4cd37
[FAB-4499] Reformatting doc
Jun 9, 2017
b0bc2c0
Merge "[FAB-4499] Reformatting doc"
hacera-jonathan Jun 23, 2017
fec4d76
FAB-4520 1.0.0-rc1 release
christo4ferris Jun 20, 2017
756ba98
FAB-4520 prepare for rc2 development
christo4ferris Jun 23, 2017
ecb50ed
[FAB-4993] Incorrect key usage for issued certs
mastersingh24 Jun 24, 2017
f013d54
[FAB-4997] Typo - VerfiyClientCertIfGiven
mastersingh24 Jun 26, 2017
e52c670
[FAB-5188] Fix password conversion bug
Jul 6, 2017
2a65467
[FAB-5203] Store hash of password in DB
Jul 7, 2017
74f8f4d
FAB-5067 Hyperledger Fabric CA v1.0.0 release
mastersingh24 Jul 11, 2017
a21585d
FAB-5071 Prepare for v1.0.1 release
mastersingh24 Jul 11, 2017
7af5d4a
FAB-5531 Create 1.0.1 fabric-ca release
mastersingh24 Jul 31, 2017
0262ccb
FAB-5067 Release Hyperledger Fabric CA v1.0.1
mastersingh24 Jul 31, 2017
00700da
FAB-5653 Prepare fabric-ca for v1.0.2 release
mastersingh24 Aug 7, 2017
3066136
FAB-5794 Mask credentials in debug messages
mastersingh24 Aug 25, 2017
cb117d8
FAB-5990 Release Hyperledger Fabric CA v1.0.2
mastersingh24 Aug 31, 2017
4c9f3d9
FAB-5994 Prepare fabric-ca for v1.0.3 release
mastersingh24 Aug 31, 2017
cc1a524
[FAB-6247] Sanitize debug messages
Sep 21, 2017
897e99e
[FAB-6360] Update license text in README
mastersingh24 Sep 30, 2017
07801e5
[FAB-6374] Release Hyperledger Fabric CA v1.0.3
mastersingh24 Oct 3, 2017
19280b6
[FAB-6377] Prepare fabric-ca for v1.0.4 release
mastersingh24 Oct 3, 2017
9ceec62
Update URL for MAINTAINERS source
ryjones Oct 12, 2017
c5d399d
[FAB-6643] Add ci.properties file
mastersingh24 Oct 17, 2017
5149604
[FAB-6624] Update vendored version of bccsp
mastersingh24 Oct 16, 2017
65686e9
[FAB-6704] Fix garbled listen message on startup
mastersingh24 Oct 20, 2017
526e460
[FAB-6793] Release Fabric CA v1.0.4
mastersingh24 Oct 31, 2017
26110c0
[FAB-6796] Prepare fabric-ca for v1.0.5 development
mastersingh24 Oct 31, 2017
048c434
[FAB-7055] Backport [FAB-5786] to release
Nov 20, 2017
1cb0c8c
[FAB-6991] Fix max enrollments for bootstrap user
mastersingh24 Dec 4, 2017
49a8d3b
[FAB-7282] Release Hyperledger Fabric CA v1.0.5
mastersingh24 Dec 6, 2017
da11ecb
[FAB-7285] Prepare fabric-ca for v1.0.6 release
mastersingh24 Dec 6, 2017
cd93c3c
[FAB-7489] TLS test certs are expired
mastersingh24 Dec 18, 2017
4816994
[FAB-7596] Modify enroll cmd to read env var
Jan 10, 2018
cf29205
Merge "[FAB-7596] Modify enroll cmd to read env var" into release
hacera-jonathan Jan 16, 2018
db72dca
[FAB-8368] Release Hyperledger Fabric CA v1.0.6
mastersingh24 Feb 18, 2018
fe2fd4f
[FAB-8369] Prepare fabric-ca for v1.0.7 release
mastersingh24 Feb 18, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@ build
coverage.xml
*.csr
*.der
testdata/fabric-ca-cert.pem
testdata/fabric-ca-key.pem
testdata/fabric*ca.db
testdata/initFabricCaFvt.json
testdata/openssl.cnf.base.this
testdata/runFabricCaFvt.json
fabric-ca
vendor/github.com/cloudflare/cfssl/vendor/github.com/cloudflare/cfssl_trust/ca-bundle/http:*.crt
331 changes: 331 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

This repository is part of the Fabric project.
Please consult [Fabric's CONTRIBUTING documentation](https://github.com/hyperledger/fabric/blob/master/docs/CONTRIBUTING.md) for information on how to contribute to this repository.

<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
10 changes: 6 additions & 4 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## Maintainers

This repository is part of the Fabric project.
Please consult [Fabric's MAINTAINERS documentation](https://github.com/hyperledger/fabric/blob/master/docs/MAINTAINERS.md) for the list of people maintaining this repository.
## Maintainers

This repository is part of the Fabric project.
Please consult [Fabric's MAINTAINERS documentation](https://github.com/hyperledger/fabric/blob/master/docs/source/MAINTAINERS.rst) for the list of people maintaining this repository.

<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
99 changes: 59 additions & 40 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -17,15 +17,16 @@
#
# - all (default) - builds all targets and runs all tests
# - license - check all go files for license headers
# - fabric-ca - builds the fabric-ca executable
# - fabric-ca-server - builds the fabric-ca-server executable
# - fabric-ca-client - builds the fabric-ca-client executable
# - unit-tests - Performs checks first and runs the go-test based unit tests
# - checks - runs all check conditions (license, format, imports, lint and vet)
# - ldap-tests - runs the LDAP tests
# - docker[-clean] - ensures all docker images are available[/cleaned]
# - clean - cleans the build area

PROJECT_NAME = fabric-ca
BASE_VERSION = 0.7.0
BASE_VERSION = 1.0.7
PREV_VERSION = 1.0.6
IS_RELEASE = false

ifneq ($(IS_RELEASE),true)
Expand All @@ -35,20 +36,22 @@ else
PROJECT_VERSION=$(BASE_VERSION)
endif

# Check that all dependencies are installed
EXECUTABLES = go docker git curl
K := $(foreach exec,$(EXECUTABLES),\
$(if $(shell which $(exec)),some string,$(error "No $(exec) in PATH: Check dependencies")))

ARCH=$(shell uname -m)
BASEIMAGE_RELEASE = 0.3.0
ifeq ($(ARCH),s390x)
PGVER=9.4
else
PGVER=9.5
endif

BASEIMAGE_RELEASE = 0.3.1
PKGNAME = github.com/hyperledger/$(PROJECT_NAME)
SAMPLECONFIG = $(shell git ls-files images/fabric-ca/config)

DOCKER_ORG = hyperledger
IMAGES = $(PROJECT_NAME)
FVTIMAGE = $(PROJECT_NAME)-fvt

image-path-map.fabric-ca := fabric-ca
path-map.fabric-ca-client := ./cmd/fabric-ca-client
path-map.fabric-ca-server := ./cmd/fabric-ca-server

include docker-env.mk

Expand All @@ -59,6 +62,11 @@ rename: .FORCE

docker: $(patsubst %,build/image/%/$(DUMMY), $(IMAGES))

docker-fvt: $(patsubst %,build/image/%/$(DUMMY), $(FVTIMAGE))

changelog:
./scripts/changelog.sh v$(PREV_VERSION) HEAD v$(BASE_VERSION)

checks: license vet lint format imports

license: .FORCE
Expand All @@ -76,21 +84,24 @@ lint: .FORCE
vet: .FORCE
@scripts/check_vet

fabric-ca:
@echo "Building fabric-ca in bin directory ..."
@mkdir -p bin && go build -o bin/fabric-ca
@echo "Built bin/fabric-ca"
fabric-ca-client: bin/fabric-ca-client
fabric-ca-server: bin/fabric-ca-server

bin/%:
@echo "Building ${@F} in bin directory ..."
@mkdir -p bin && go build -o bin/${@F} $(path-map.${@F})
@echo "Built bin/${@F}"

# We (re)build a package within a docker context but persist the $GOPATH/pkg
# directory so that subsequent builds are faster
build/docker/bin/fabric-ca:
build/docker/bin/%:
@echo "Building $@"
@mkdir -p $(@D) build/docker/$(@F)/pkg
@$(DRUN) \
-v $(abspath build/docker/bin):/opt/gopath/bin \
-v $(abspath build/docker/$(@F)/pkg):/opt/gopath/pkg \
hyperledger/fabric-baseimage:$(BASE_DOCKER_TAG) \
go install -ldflags "$(DOCKER_GO_LDFLAGS)" $(PKGNAME)
go install -ldflags "$(DOCKER_GO_LDFLAGS)" $(PKGNAME)/$(path-map.${@F})
@touch $@

build/docker/busybox:
Expand All @@ -99,53 +110,61 @@ build/docker/busybox:
hyperledger/fabric-baseimage:$(BASE_DOCKER_TAG) \
make -f busybox/Makefile install BINDIR=$(@D)

# payload definitions
build/image/$(PROJECT_NAME)/payload: build/docker/bin/fabric-ca \
build/sampleconfig.tar.bz2

build/image/%/payload:
mkdir -p $@
cp images/fabric-ca/root.pem $@/root.pem
cp images/fabric-ca/tls_client-cert.pem $@/tls_client-cert.pem
cp images/fabric-ca/tls_client-key.pem $@/tls_client-key.pem
cp images/fabric-ca/ec.pem $@/ec.pem
cp images/fabric-ca/ec-key.pem $@/ec-key.pem
cp $^ $@

build/image/%/$(DUMMY): Makefile build/image/%/payload
$(eval TARGET = ${patsubst build/image/%/$(DUMMY),%,${@}})
$(eval DOCKER_NAME = $(DOCKER_ORG)/$(TARGET))
@echo "Building docker $(TARGET) image"
@cat images/$(image-path-map.$(TARGET))/Dockerfile.in \
@cat images/$(TARGET)/Dockerfile.in \
| sed -e 's/_BASE_TAG_/$(BASE_DOCKER_TAG)/g' \
| sed -e 's/_TAG_/$(DOCKER_TAG)/g' \
| sed -e 's/_PGVER_/$(PGVER)/g' \
> $(@D)/Dockerfile
$(DBUILD) -t $(DOCKER_NAME) $(@D)
docker tag $(DOCKER_NAME) $(DOCKER_NAME):$(DOCKER_TAG)
@touch $@

build/sampleconfig.tar.bz2: $(SAMPLECONFIG)
tar -jc -C images/fabric-ca/config $(patsubst images/fabric-ca/config/%,%,$(SAMPLECONFIG)) > $@
build/image/fabric-ca/payload: \
build/docker/bin/fabric-ca-client \
build/docker/bin/fabric-ca-server \
build/fabric-ca.tar.bz2
build/image/fabric-ca-fvt/payload: \
build/docker/bin/fabric-ca-client \
build/docker/bin/fabric-ca-server \
images/fabric-ca-fvt/base.ldif \
images/fabric-ca-fvt/add-users.ldif \
images/fabric-ca-fvt/start.sh
build/image/%/payload:
@echo "Copying $^ to $@"
mkdir -p $@
cp $^ $@

unit-tests: checks fabric-ca
@scripts/run_tests
build/fabric-ca.tar.bz2: $(shell git ls-files images/fabric-ca/payload)

container-tests: ldap-tests
build/%.tar.bz2:
@echo "Building $@"
@tar -jc -C images/$*/payload $(notdir $^) > $@

unit-tests: checks fabric-ca-server fabric-ca-client
@scripts/run_tests

ldap-tests:
@scripts/run_ldap_tests
container-tests: docker

fvt-tests:
@scripts/run_fvt_tests

ci-tests: docker-clean docker-fvt unit-tests
@docker run -v $(shell pwd):/opt/gopath/src/github.com/hyperledger/fabric-ca hyperledger/fabric-ca-fvt

%-docker-clean:
$(eval TARGET = ${patsubst %-docker-clean,%,${@}})
-docker images -q $(DOCKER_ORG)/$(TARGET):latest | xargs -I '{}' docker rmi -f '{}'
-@rm -rf build/image/$(TARGET) ||:

docker-clean: $(patsubst %,%-docker-clean, $(IMAGES))
docker-clean: $(patsubst %,%-docker-clean, $(IMAGES) $(PROJECT_NAME)-fvt)
@rm -rf build/docker/bin/* ||:

.PHONY: clean

clean: docker-clean
-@rm -rf build bin ||:

Expand Down
Loading