読者です 読者をやめる 読者になる 読者になる

opensslの設定ファイルを変えてみた。

設定ファイルをコピーする

cp -p /etc/pki/tls/openssl.cnf /etc/pki/tls/openssl.cnf.bk

vimで編集

 *** /etc/pki/tls/openssl.cnf.bk 2010-03-27 06:45:33.000000000 +0900
 --- /etc/pki/tls/openssl.cnf    2010-08-15 07:15:35.000000000 +0900
***************
*** 133,150 ****
  
  [ req_distinguished_name ]
  countryName                   = Country Name (2 letter code)
! countryName_default           = GB
  countryName_min                       = 2
  countryName_max                       = 2
  
  stateOrProvinceName           = State or Province Name (full name)
! stateOrProvinceName_default   = Berkshire
  
  localityName                  = Locality Name (eg, city)
! localityName_default          = Newbury
  
  0.organizationName            = Organization Name (eg, company)
! 0.organizationName_default    = My Company Ltd
  
  # we can do this but it is not needed normally :-)
  #1.organizationName           = Second Organization Name (eg, company)
--- 133,150 ----
  
  [ req_distinguished_name ]
  countryName                   = Country Name (2 letter code)
! countryName_default           = JP
  countryName_min                       = 2
  countryName_max                       = 2
  
  stateOrProvinceName           = State or Province Name (full name)
! stateOrProvinceName_default   = Osaka
  
  localityName                  = Locality Name (eg, city)
! localityName_default          = Chuo-ku
  
  0.organizationName            = Organization Name (eg, company)
! 0.organizationName_default    = localhost Inc.
  
  # we can do this but it is not needed normally :-)
  #1.organizationName           = Second Organization Name (eg, company)