<commit_before># TODO: verify with x509_certificate
describe file('/etc/apache2/ssl/dnsimple.xyz.crt') do
  its('content') { should match /-----BEGIN CERTIFICATE-----/ }
end
# TODO: verify with key_rsa
describe file('/etc/apache2/ssl/dnsimple.xyz.key') do
  its('content') { should match /-----BEGIN RSA PRIVATE KEY-----/ }
end<commit_msg>Test cert and key with x509_certificate and key_rsa, respectively<commit_after>describe x509_certificate('/etc/apache2/ssl/dnsimple.xyz.crt') do
  its('key_length') { should be 2048 }
  its('subject.CN') { should eq 'www.dnsimple.xyz' }
end

describe key_rsa('/etc/apache2/ssl/dnsimple.xyz.key') do
  it { should be_private }
  it { should be_public }
  its('key_length') { should be 2048 }
end
{'fraction_non_alphanumeric': 0.15552523874488403, 'fraction_numerical': 0.0286493860845839, 'mean_word_length': 4.1328671328671325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6203433', 'n_tokens_mistral': 287, 'n_tokens_neox': 254, 'n_words': 62}