MacのSafariでbiz-station:証明書の更新

VirtualBoxなどのWin10環境IEにて証明書を更新

githubからjailbreak(iSEC Partners)をDL&解答
https://github.com/iSECPartners/jailbreak

cmdでコマンドプロンプトさがして

C:\Users\XXX>cd Desktop\jailbreak-master\binaries
C:\Users\XXX\Desktop\jailbreak-master\binaries>jailbreak64 jbstore2_64.exe -1 -n "SUPERSECRET KEY"


出力されたout.pfxをMacに移動

キーチェーンアクセスで以下の場所にD&D
キーチェーン:ログイン
分類:自分の証明書

パスワード求められたら「password」*out.pfxをエクスポートするときに-pでパスワード指定できるかも

古いBizSTATIONの証明書を削除

Safari再起動してログイン

参考
http://init.shao.jp/post/66554878243/エクスポート不可能に設定された電子認証をエクスポートする方法
http://d.hatena.ne.jp/ozakira/20150812

Vagrantfileの共有フォルダ指定箇所

こうすると

config.vm.synced_folder "./html", "/var/www/html", mount_options: ['dmode=777', 'fmode=777']

こうなる

[vagrant@localhost ~]$ cd /var/www/html
[vagrant@localhost html]$ ls -la
drwxrwxrwx 1 vagrant vagrant  102 Aug 15 07:19 .
drwxr-xr-x 6 root    root    4096 Aug 15 06:36 ..
-rwxrwxrwx 1 vagrant vagrant   10 Aug 15 07:19 index.html

knife-soloが有効にならない

Chefdkでchefをインストールした環境でknife-soloが有効にならない

Unable to activate knife-solo-0.6.0, because net-ssh-4.1.0 conflicts with net-ssh (< 4.0, >= 2.7) (Gem::ConflictError)

参考
http://knowledge.sakura.ad.jp/tech/2825/

サーバー構築初心者がプロビジョニングツール「chef」に挑戦してみました(後編) ~knife-solo 0.7.0 preについて~

knife-soloを0.7系にアップすると治る
*Chefdkでインストールしたのでパスが違う

$ /opt/chef/embedded/bin/gem install knife-solo --pre


正(おまかん)

$ /opt/chefdk/embedded/bin/gem install knife-solo --pre
Fetching: knife-solo-0.7.0.pre.gem (100%)
WARNING:  You don't have /Users/XXXX/.chefdk/gem/ruby/2.4.0/bin in your PATH,
	  gem executables will not run. #ここは今の所大丈夫みたい
Thanks for installing knife-solo!

If you run into any issues please let us know at:
  https://github.com/matschaffer/knife-solo/issues

If you are upgrading knife-solo please uninstall any old versions by
running `gem clean knife-solo` to avoid any errors.

See http://bit.ly/CHEF-3255 for more information on the knife bug
that causes this.
Successfully installed knife-solo-0.7.0.pre
1 gem installed

とやったところで、

$ knife cookbook create apache -o site-cookbooks
Error: invalid option: -o

-oオプションが悪いのかと思ったが

$ knife cookbook create apache site-cookbooks
FATAL: knife cookbook create has been removed. Please use `chef generate cookbook` from the ChefDK


正(おまかん)

$ chef generate cookbook site-cookbooks/apache
Generating cookbook apache
- Ensuring correct cookbook file content
- Committing cookbook files to git
- Ensuring delivery configuration
- Ensuring correct delivery build cookbook content
- Adding delivery configuration to feature branch
- Adding build cookbook to feature branch
- Merging delivery content feature branch to master

Your cookbook is ready. Type `cd apache` to enter it.

There are several commands you can run to get started locally developing and testing your cookbook.
Type `delivery local --help` to see a full list.

Why not start by writing a test? Tests for the default recipe are stored at:

test/smoke/default/default_test.rb

If you'd prefer to dive right in, the default recipe can be found at:

recipes/default.rb