github.com/Venafi/vcert/v5@v5.10.2/aruba/features/gencsr/output.feature (about) 1 @COMMON 2 Feature: Generating simple certificate request 3 4 As a user I want to generate certificate requests (CSR) 5 6 Background: 7 And the default aruba exit timeout is 180 seconds 8 9 Scenario: where CSR is generated interactively with empty key-password 10 When I run `vcert gencsr -cn vfidev.example.com` interactively 11 And I type "" 12 And I type "" 13 Then the exit status should be 0 14 And it should output private key 15 And it should output CSR 16 17 Scenario: where CSR is generated interactively with non-empty key-password 18 When I run `vcert gencsr -cn vfidev.example.com` interactively 19 And I type dummy password 20 And I type dummy password 21 Then the exit status should be 0 22 And it should output encrypted private key 23 And it should output CSR 24 25 Scenario: where CSR is generated with -no-prompt 26 When I run `vcert gencsr -cn vfidev.example.com -no-prompt` 27 Then the exit status should be 0 28 And it should output private key 29 And it should output CSR 30 31 Scenario: where CSR is generated and the private key is encrypted 32 When I generate CSR using dummy password with flags -cn vfidev.example.com 33 Then the exit status should be 0 34 And it should output encrypted private key 35 And it should output CSR 36 37 Scenario: where although -csr-file option is ignored - VEN-41637 38 When I run `vcert gencsr -cn vfidev.example.com -no-prompt -csr-file csr.pem` 39 Then the exit status should be 0 40 And it should output private key 41 And it should write CSR to the file named "csr.pem" 42 43 Scenario: where -csr-file and -key-file options are both specified 44 When I run `vcert gencsr -cn vfidev.example.com -no-prompt -csr-file csr.pem -key-file k.pem` 45 Then the exit status should be 0 46 And it should write CSR to the file named "csr.pem" 47 And it should write private key to the file named "k.pem" 48 And it should not output private key 49 And it should not output CSR 50 And the output should be 0 bytes long