Commit c15db56
authored
added possibility to name the user keys (#7)
#### Type of change
- New feature
#### Description
This PR gives `cryptogen` to capability to create named certificates
for users within a peer organization, as it is currently done with the
`peers`.
Before this fix, it was impossible to specify the name of a user,
leading to the production of user crypto material that looked like:
```text
users/
[email protected]/
[email protected]/
```
With this additional functionality, if the user specifies a user with a
Name:
```yaml
Users:
Count: 1
Specs:
- Name: testuser
```
it will generate:
```text
users/
[email protected]/
[email protected]/
[email protected]/
```
The possibility of giving names to the user credentials is crucial to
successfully handle the current deployment when using `cryptogen`, since
the Ansible scripts use the hostname to identify the path where to
locate the crypto material.
Signed-off-by: pco <[email protected]>1 parent c100e50 commit c15db56
1 file changed
+22
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | | - | |
70 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
209 | 215 | | |
210 | 216 | | |
211 | 217 | | |
| 218 | + | |
| 219 | + | |
212 | 220 | | |
213 | 221 | | |
214 | 222 | | |
| |||
561 | 569 | | |
562 | 570 | | |
563 | 571 | | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
569 | 576 | | |
570 | | - | |
571 | | - | |
572 | | - | |
| 577 | + | |
573 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
574 | 586 | | |
575 | 587 | | |
576 | 588 | | |
| |||
0 commit comments