This commit is contained in:
@@ -5,60 +5,33 @@ date: 2022-05-20T00:00:00
|
||||
|
||||
[Mozc](https://github.com/google/mozc) is an open-source counterpart of Google Japanese Input, a Japanese input method developed by Google.
|
||||
|
||||
## Setup build environment
|
||||
## Build environment
|
||||
|
||||
```
|
||||
$ sw_vers
|
||||
ProductName: macOS
|
||||
ProductVersion: 12.2.1
|
||||
BuildVersion: 21D62
|
||||
ProductVersion: 12.6.1
|
||||
BuildVersion: 21G217
|
||||
|
||||
$ xcodebuild -version
|
||||
Xcode 13.3
|
||||
Build version 13E113
|
||||
```
|
||||
|
||||
```bash
|
||||
# Install dependencies
|
||||
brew install python3 ninja qt@5
|
||||
|
||||
# Clone the repository
|
||||
git clone https://github.com/google/mozc -b master --single-branch --recursive
|
||||
Xcode 14.1
|
||||
Build version 14B47b
|
||||
```
|
||||
|
||||
## Build mozc
|
||||
|
||||
```bash
|
||||
# Move to the source directory
|
||||
# Install dependencies
|
||||
brew install qt@5 bazel packages
|
||||
|
||||
# Clone the repository
|
||||
git clone https://github.com/google/mozc -b master --single-branch --recursive
|
||||
|
||||
# Build
|
||||
cd mozc/src
|
||||
|
||||
# Expose necessary variable
|
||||
MAC_SDK=$(xcodebuild -showsdks 2>/dev/null | grep '\tmacOS' | awk '{print $2}')
|
||||
MAC_DEPLOYMENT_TARGET=$(sw_vers -productVersion | sed -E 's/\.[^.]+$//')
|
||||
export GYP_DEFINES="mac_sdk=${MAC_SDK} mac_deployment_target=${MAC_DEPLOYMENT_TARGET}"
|
||||
|
||||
# Apply hotfix to third party libs
|
||||
cd third_party
|
||||
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
||||
export PATH="$PATH:$PWD/depot_tools"
|
||||
python3 -m pip install six
|
||||
cd gyp
|
||||
git apply ../../gyp/gyp.patch
|
||||
cd ../..
|
||||
|
||||
# Configure
|
||||
python3 build_mozc.py gyp --qtdir=/usr/local/opt/qt@5
|
||||
|
||||
# Build main converter and GUI tools
|
||||
python3 build_mozc.py build -c Release mac/mac.gyp:GoogleJapaneseInput gui/gui.gyp:config_dialog_main
|
||||
MOZC_QT_PATH=/usr/local/opt/qt@5 ANDROID_NDK_HOME= bazel build package --config macos -c opt
|
||||
|
||||
# Install
|
||||
sudo cp -r out_mac/Release/Mozc.app /Library/Input\ Methods/
|
||||
sudo cp mac/installer/LaunchAgents/org.mozc.inputmethod.Japanese.Converter.plist /Library/LaunchAgents
|
||||
sudo cp mac/installer/LaunchAgents/org.mozc.inputmethod.Japanese.Renderer.plist /Library/LaunchAgents
|
||||
|
||||
# Clean up the tree
|
||||
python3 build_mozc.py clean
|
||||
|
||||
open bazel-bin/mac/Mozc.pkg
|
||||
reboot
|
||||
```
|
||||
|
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 日本のルート認証局を戴く中間認証局のACME対応状況
|
||||
title: 国内のルート認証局とACME対応状況
|
||||
date: 2022-03-04T15:00:00
|
||||
---
|
||||
|
||||
@@ -7,7 +7,7 @@ date: 2022-03-04T15:00:00
|
||||
|
||||
## 概要
|
||||
|
||||
まず断っておきたいが、ルート認証局によって子孫 SSL 証明書の安全性に問題が生じたことは[WoSign の例](https://wiki.mozilla.org/CA/WoSign_Issues)を除いてほとんどない。わざわざ高額な手数料を支払うより、同じセキュリティ強度の証明書を無料で提供してくれる Let's Encrypt (ISRG)や ZeroSSL (Sectigo) をありがたく使わせていただく、そういう意識で問題ないのである。
|
||||
まず断っておきたいが、ルート認証局のせいで子孫 SSL 証明書の運用に問題が生じたことは[WoSign](https://wiki.mozilla.org/CA/WoSign_Issues)や[TrustCor](https://www.techtarget.com/searchsecurity/news/252527174/TrustCor-under-fire-over-certificate-authority-concerns)(TrustCor は少し毛色が違うが)の例を除いてほとんどない。わざわざ高額な手数料を支払うより、同じセキュリティ強度の証明書を無料で提供してくれる Let's Encrypt (ISRG)や ZeroSSL (Sectigo) をありがたく使わせていただく、そういう意識で問題ないのである。
|
||||
|
||||
## 国内唯一のルート認証局は SECOM が所有
|
||||
|
||||
@@ -40,7 +40,7 @@ FujiSSL は独自の自動更新ツールを提供しているが、ホストに
|
||||
- [ACME について | JPRS](https://jprs.jp/pubcert/about/ACME/)
|
||||
- [JPRS サーバー証明書発行サービス ACME 対応版ご利用条件 (PDF)](https://jprs.jp/pubcert/info/repository/acme-agreement.pdf)
|
||||
|
||||
[JPRS サーバー証明書認証局証明書ポリシー](https://jprs.jp/pubcert/info/repository/JPRS-CP.pdf)に目を通してどの認証方式に対応しているのか調べてみよう。
|
||||
[JPRS サーバー証明書認証局証明書ポリシー](https://jprs.jp/pubcert/info/repository/JPRS-CP.pdf)に目を通してどの認証方式に対応しているのか確認しよう。
|
||||
|
||||
### 3.2.2.4.7 DNS Change
|
||||
|
||||
@@ -70,7 +70,7 @@ DNS ゾーンに CAA レコードを置いて内容を`jprs.jp`にする必要
|
||||
|
||||
Go 製の ACME クライアント[lego](https://github.com/go-acme/lego)は DNS-01 認証に対応しているため、JPRS ACME 証明書の発行がスムーズにできる可能性がある。
|
||||
|
||||
```bash
|
||||
```bash コマンド例(執筆時点では動作しない)
|
||||
CLOUDFLARE_DNS_API_TOKEN=<token> \
|
||||
lego \
|
||||
--server 'https://acme.amecert.jprs.jp/DV/getDirectory' \
|
||||
|
Reference in New Issue
Block a user