mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Typo fix
This commit is contained in:
parent
d8ab710f10
commit
f6c7dd48db
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ class UpdateCertsAddCnFromCsr < ActiveRecord::Migration
|
|||
def change
|
||||
Certificate.all.each do |x|
|
||||
if x.crt.blank? && x.csr.present?
|
||||
pc = x.parsed_crt.try(:subject).try(:to_s) || ''
|
||||
pc = x.parsed_csr.try(:subject).try(:to_s) || ''
|
||||
cn = pc.scan(/\/CN=(.+)/).flatten.first
|
||||
x.common_name = cn.split('/').first
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue