# encoding: UTF-8

control 'V-219321' do
  title "The Ubuntu operating system must only allow the use of DoD
PKI-established certificate authorities for verification of the establishment
of protected sessions."
  desc  "Untrusted Certificate Authorities (CA) can issue certificates, but
they may be issued by organizations or individuals that seek to compromise DoD
systems or by organizations with insufficient security controls. If the CA used
for verifying the certificate is not a DoD-approved CA, trust of this CA has
not been established.

    The DoD will only accept PKI-certificates obtained from a DoD-approved
internal or external certificate authority. Reliance on CAs for the
establishment of secure sessions includes, for example, the use of SSL/TLS
certificates.
  "
  desc  'rationale', ''
  desc  'check', "
    Verify the directory containing the root certificates for the Ubuntu
operating system only contains certificate files for DoD PKI-established
certificate authorities by iterating over all files in the '/etc/ssl/certs'
directory and checking if, at least one, has the subject matching \"DOD ROOT
CA\".

    If none is found, this is a finding.
  "
  desc  'fix', "Add at least one DOD certificate authority to the
'/usr/local/share/ca-certificates' directory, then run the
'update-ca-certificates' command."
  impact 0.5
  tag severity: 'medium'
  tag gtitle: 'SRG-OS-000403-GPOS-00182'
  tag gid: 'V-219321'
  tag rid: 'SV-219321r508662_rule'
  tag stig_id: 'UBTU-18-010436'
  tag fix_id: 'F-21045r305292_fix'
  tag cci: ['V-100865', 'SV-109969', 'CCI-002470']
  tag nist: ['SC-23 (5)']
end

