다시 인증서 목록을 조회하면 인증서가 서명된 사실을 확인할 수 있습니다.
administrator@vmgate:~$ sudo /opt/puppetlabs/bin/puppetserver ca list --all
Signed Certificates:
vmgate.linuxmastery.kr (SHA256) 8B:49:FB:75:22:EC:1F:C8:E8:97:3B:0B:2F:24:B3:86:43:8B:05:C8:33:21:59:B3:7F:4B:11:B6:0B:6D:ED:B0alt names: ["DNS:puppet", "DNS:vmgate.linuxmastery.kr"] authorization extensions: [ppl_cli_auth: true]
vm01.linuxmastery.kr (SHA256) 82:36:02:EC:BA:34:AD:E6:E2:1E:0B:CA:6B:84:99:B7:29:32:94:09:9A:D3:22:F0:F9:3D:49:E3:1F:2F:B5:C0
가상 게스트로 돌아와 퍼팻 에이전트를 다시 실행합니다. 로그를 확인하면 퍼팻 서버와 인증에 성공한 사실을 알 수 있습니다.
administrator@vm01:~$ sudo /opt/puppetlabs/bin/puppet agent --test
Info: csr_attributes file loading from /etc/puppetlabs/puppet/csr_attributes.yaml
Info: Creating a new SSL certificate request for vm01.linuxmastery.kr
Info: Certificate Request fingerprint (SHA256): 82:36:02:EC:BA:34:AD:E6:E2:1E:0B:CA:6B:84:99:B7:29:32:94:09:9A:D3:22:F0:F9:3D:49:E3:1F:2F:B5:C0
Info: Downloaded certificate for vm01.linuxmastery.kr from https://vmgate.linuxmastery.kr:8140/puppet-ca/v1
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Caching catalog for vm01.linuxmastery.kr
Info: Applying configuration version '1590324101'
Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml
Notice: Applied catalog in 0.49 seconds