TLS/SSL の自己署名証明書の管理には `caman` というツールが便利
読了まで:約0分
- [[本日の
小ネタ]] 。
最近、openssl
コマンドを
で、README.md
# ユーザー名で設定ファイルなどを作成
$ caman new $USERNAME
# vim とかで各 host or username 要の `openssl` の設定ファイル
# `config.cnf` の `v3_req` セクションにクライアント認証の設定を追加
$ vim store/${USERNAME}/config.cnf
# 実際に署名
$ caman sign $USERNAME
と
ちなみに
[[ ca ]]
default_ca = local_ca
[[ local_ca ]]
# Default expiration and encryption policies for certificates
# 10 years for certs
default_days = 3650
[[ req ]]
prompt = no
distinguished_name = host_distinguished_name
req_extensions = v3_req
[[ host_distinguished_name ]]
# >> Change the following 4 variables:
# countryName must be 2 character character code
countryName = JP
stateOrProvinceName = MIE
organizationName = Nyarlabo!
organizationalUnitName = Private
emailAddress = [email protected]
# << End changes
commonName = nyarla
[[ v3_req ]]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
extendedKeyUsage = clientAuth
nsCertType = client, email, objsign
で、caman
の
と