diff options
author | elijah <elijah@riseup.net> | 2013-02-27 20:54:50 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-02-27 20:54:50 -0800 |
commit | f053c1c53f00962ee9ca25d591d248e7695e6fa5 (patch) | |
tree | 1f7868a1f420ef749cfb1e274e1e7a8c7cd5a92c /certs/app | |
parent | 1a369be11b776cd75b3c046fa508ea1bca499227 (diff) |
change free cert postfix to be a prefix (this is required for how openvpn does common name matching)
Diffstat (limited to 'certs/app')
-rw-r--r-- | certs/app/models/client_certificate.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/certs/app/models/client_certificate.rb b/certs/app/models/client_certificate.rb index 1bc34c6..13e0318 100644 --- a/certs/app/models/client_certificate.rb +++ b/certs/app/models/client_certificate.rb @@ -66,8 +66,7 @@ class ClientCertificate end def common_name(for_free_cert = false) - random_common_name + - (for_free_cert ? APP_CONFIG[:free_cert_postfix] : '') + (for_free_cert ? APP_CONFIG[:free_cert_prefix] : '') + random_common_name end # |