Sha256: 95224ec60848cb4ed1c63990b55ba35d52293642c4d7149aa72e384d992f18e5
Contents?: true
Size: 637 Bytes
Versions: 10
Compression:
Stored size: 637 Bytes
Contents
def generate_dkim_key(domain, selector='default') sh "opendkim-genkey -r -s #{selector} -d #{domain} -D /etc/ssl/dkim" chown 'opendkim', 'opendkim', "/etc/ssl/dkim/#{selector}.private" chown 'opendkim', 'rmails', "/etc/ssl/dkim/#{selector}.txt" chmod 0660, "/etc/ssl/dkim/#{selector}.txt" # correct bad dns record edit "/etc/ssl/dkim/#{selector}.txt" do replace ';=rsa;', ";k=rsa;" end key_table = "#{selector}._domainkey.#{domain} #{domain}:#{selector}:/etc/ssl/dkim/#{selector}.private" signing_table = "*@#{domain} #{selector}._domainkey.#{domain}" return key_table, signing_table end
Version data entries
10 entries across 10 versions & 1 rubygems