I'm currently testing out something like this...

  1.
             fqdn = socket.getfqdn()
  2.
             host = socket.gethostname()
  3.
             if fdqn.find(host) != -1:
  4.
                 subj.CN = fqdn
  5.
             else:
  6.
                 subj.CN = host

Will have something for you to test on your setup shortly...

--Michael


_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list

Reply via email to