just being nit-picky, but wouldn't it be more ruby to write:
<code>
random_common_name + (for_free_cert ? ' ' + APP_CONFIG[:free_cert_postfix] : '')
</code>