$ docker compose up [+] Running 1/0 - Container test415-deno-mqtt-mosquitto-1 Recreated 0.1s Attaching to test415-deno-mqtt-mosquitto-1 test415-deno-mqtt-mosquitto-1 | 1690550102: mosquitto version 2.0.15 starting test415-deno-mqtt-mosquitto-1 | 1690550102: Config loaded from /mosquitto/config/mosquitto.conf. test415-deno-mqtt-mosquitto-1 | 1690550102: Opening ipv4 listen socket on port 1883. test415-deno-mqtt-mosquitto-1 | 1690550102: mosquitto version 2.0.15 running test415-deno-mqtt-mosquitto-1 | 1690550102: New connection from 172.19.0.1:60312 on port 1883. test415-deno-mqtt-mosquitto-1 | 1690550102: New client connected from 172.19.0.1:60312 as mqttts-g3esvnkxcg9 (p2, c1, k60). test415-deno-mqtt-mosquitto-1 | 1690550103: New connection from 172.19.0.1:60314 on port 1883. test415-deno-mqtt-mosquitto-1 | 1690550103: New client connected from 172.19.0.1:60314 as mqttts-4xea757ulwk (p2, c1, k60).
$ docker compose run al-openssl openssl req -new -x509 -days 36500 -key ca.key -out ca.crt # => パスワードを確認されるので入れる # => 以下入力要求があるので入れる Country Name (2 letter code) [AU]:JP State or Province Name (full name) [Some-State]:tokyo Locality Name (eg, city) []:tokyo Organization Name (eg, company) [Internet Widgits Pty Ltd]:same Organizational Unit Name (eg, section) []:same Common Name (e.g. server FQDN or YOUR name) []:localhost Email Address []: # => certs/ca.crt が作成される
$ docker compose run al-openssl openssl req -new -out localhost.csr -key localhost.key Country Name (2 letter code) [AU]:JP State or Province Name (full name) [Some-State]:tokyo Locality Name (eg, city) []:tokyo Organization Name (eg, company) [Internet Widgits Pty Ltd]:same Organizational Unit Name (eg, section) []:same Common Name (e.g. server FQDN or YOUR name) []:localhost Email Address []:
Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []: # => certs/localhost.csr が作成される
$ docker compose run al-openssl openssl req -new -out client.csr -key client.key Country Name (2 letter code) [AU]:JP State or Province Name (full name) [Some-State]:tokyo Locality Name (eg, city) []:tokyo Organization Name (eg, company) [Internet Widgits Pty Ltd]:same Organizational Unit Name (eg, section) []:same Common Name (e.g. server FQDN or YOUR name) []:localhost Email Address []:
Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []: # => certs/localhost.csr が作成される