Changeset - ad8c25a050b5
[Not reviewed]
0 2 0
Branko Majic (branko) - 6 years ago 2018-03-04 15:02:06
branko@majic.rs
GC-15: Updated examples in CLI help to include commands for issuing server certificates.
2 files changed with 8 insertions and 0 deletions:
0 comments (0 inline, 0 general)
functional_tests/test_help.py
Show inline comments
 
@@ -68,6 +68,8 @@ def test_extended_help_shown():
 
    assert "usage: gimmecert [-h]" in stdout_h_flag
 
    assert "Examples:" in stdout_h_flag
 
    assert "gimmecert init" in stdout_h_flag
 
    assert "gimmecert server myserver" in stdout_h_flag
 
    assert "gimmecert server myserver extradns1.local extradns2.example.com" in stdout_h_flag
 
    assert "optional arguments" in stdout_h_flag
 
    # Subcommands listed.
 
    assert "help" in stdout_h_flag
gimmecert/cli.py
Show inline comments
 
@@ -41,6 +41,12 @@ Examples:
 

	
 
    # Initialise the local CA hierarchy and all the necessary directories.
 
    gimmecert init
 

	
 
    # Issue a TLS server certificate with only the server name in DNS subject alternative name.
 
    gimmecert server myserver
 

	
 
    # Issue a TLS server certificate with additional DNS subject alternative names.
 
    gimmecert server myserver extradns1.local extradns2.example.com
 
"""
 

	
 

	
0 comments (0 inline, 0 general)