easy-rsa icon indicating copy to clipboard operation
easy-rsa copied to clipboard

Document verbose and quiet options

Open TinCanTech opened this issue 3 years ago • 1 comments

Option -v|--verbose only works with show-expire and show-renew. It is only meant as a way to verify that:

    [ "$db_serial" = "$cert_serial" ] || return 0

is valid. Even though the code reads as [ FALSE ] then return TRUE.

Actual code:

		# db serial must match certificate serial, otherwise this
		# is an issued cert that replaces a renewed cert
		if [ "$db_serial" != "$cert_serial" ]; then
			verbose "* serial mismatch:
  db_serial:    $db_serial
  cert_serial:  $cert_serial
  cert_file_in: $cert_file_in"
			return 0
		fi

When db_serial does not match cert_serial that is expected. The mismatch is caused by having duplicate commonNames map to differing unique serialNumbers. This is due to renewing certificates via any method.

TinCanTech avatar Sep 21 '22 22:09 TinCanTech

Also -q|--quiet to disable information()

Initial commit: 8b7e79096b18afc5c61bfbaee204c1f7401f0019

TinCanTech avatar Oct 11 '22 20:10 TinCanTech

Closed via fb198b17e29de739482a52b05f24f523d4d1c95c

TinCanTech avatar Dec 05 '22 15:12 TinCanTech