On 11/5/05, <b class="gmail_sendername">Steven Stromer</b> &lt;<a href="mailto:filter@stevenstromer.com">filter@stevenstromer.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
kwhiskers wrote:<br>&gt;<br>&gt;<br>&gt; On 03/11/05, *Steven Stromer* &lt;<a href="mailto:filter@stevenstromer.com">filter@stevenstromer.com</a><br>&gt; &lt;mailto:<a href="mailto:filter@stevenstromer.com">filter@stevenstromer.com
</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;I want<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;to create a self-signed CA cert, which is most easily achieved<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; using the<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;ca.pl script. This is no longer anywhere to be found, along with the
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;demoCA folder that one would normally expect to find. Can anyone<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; shed<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;&gt;some light on where these files ended up? I can't find them on a<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; search.<br>
&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;The perl script is in the openssl-perl package.&nbsp;&nbsp;The original<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; split was<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;needed to keep the openssl package from depending on perl, which<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; isn't<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;part of the &quot;Base&quot; package component/group.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;It looks like the generated data files would now be placed in<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; /etc/CA,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;but of course that's configurable in openssl.cnf.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;HTH,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;&gt;Nalin<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; It seems to me that certificates can be created using :<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; /etc/pki/tls/certs/Makefile<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; -------------------------------------------
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; Aaron Konstam<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Thank you all for your replies. I was aware of the line:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 'OpenSSL: the /usr/share/ssl contents have moved to /etc/pki/tls and<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; /etc/pki/CA.'
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; in FC4's Release Notes. However, within the new path, there are many<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; files missing that were available in the old path.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Nalin helped to explain some of the missing files by documenting that
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; openssl and openssl-perl are seperate packages. That helps to explain<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; some of the missing script files.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Before learning this I manually executed all of the commnands I needed<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; to create my CA and host certificates and keys using openssl commands,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; which are easier to use, in my opinion, than the perl scripts that<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; exist<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; to help in these steps. But, that's just a matter of opinion, and I
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; understand that there are a number of scripts that perform very<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; convenient file conversion, that I may find myself reaching for sometime<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; in the future.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; For the moment, I've skipped installing the openssl-perl package, just
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; to keep life as simple as possible (less to learn, secure, and just deal<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; with!).<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; The Makefile is also very helpful for at least creating a pem styled<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; csr<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; (make certreq).
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; However, this is where the remaining missing files and directories come<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; into play. I want to sign my newly minted request with my own CA cert,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; but I am getting errors having to do with the configuration of
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; openssl.cnf. There seem to be a number of 'mistakes' in the CA_default<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; section of the configuration file. The first attribute 'dir', has a<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; value of '../../CA', which seems faulty to me. Worse, a few lines
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; later,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; the 'crl_dir', 'serial', 'crl' and a number of other attributes have<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; values that point to directories and files that simply DO NOT EXIST!<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; I have attempted to create some of the missing directories, which gets
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; me past the first few errors when executing:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; openssl ca -config /etc/pki/tls/openssl.cnf -policy policy_anything -out<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; www.domainname.com.pem -infiles www.domainname.com.request.pem
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; but, eventually I get to errors relating to the missing files (ie.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; index.txt) and I grind to a halt.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Has anyone successfully created CA and signed their own certs using a
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 'default' installation of FC4? Did you have to take any extraordinary<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; steps to achieve this?<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Thanks everyone for the responses. Sorry this is more involved than it<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; first seemed.
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Steven Stromer<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; --<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; fedora-list mailing list<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a> &lt;mailto:<a href="mailto:fedora-list@redhat.com">
fedora-list@redhat.com</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>&gt;<br>&gt;<br>&gt; I am waiting with bated breath for the answer.
<br>&gt;<br>&gt; I had created a certificate manually, with openssl pkcs<br>&gt; somethingorother, which generated the certificate and imported<br>&gt; successfully into konqueror, firefox and mozilla.<br>&gt;<br>&gt; This morning, I discovered the makefile in /etc/pki/certs and tried make
<br>&gt; certificatename.pem and that worked also.<br>&gt;<br>&gt; I have placed these certificates into every directory I can think of in<br>&gt; the /etc/pki tree, as well as having imported them into the<br>&gt; aforementioned programs.
<br>&gt;<br>&gt; I am unable to use these certificates to sign a document in open office,<br>&gt; however.<br>&gt;<br>&gt; As for your problem, I cannotoffer any more information, but I feel that<br>&gt; the solutions are allied.
<br>&gt;<br><br>It would seem that signing a certificate should be a fairly<br>straightforward, and common action; al least common enough for some list<br>readers to be able to say 'yes, I can do this without a problem in FC4',
<br>or 'no, I'm experiencing the same problems'. I am becoming more and more<br>convinced that this is an issue of misconfiguration of the present<br>openssl package, which might warrant a bug listing. There is some<br>interesting, and very good, documentation on 
openssl.cfg at:<br><br><a href="http://www.technoids.org/openssl.cnf.html">http://www.technoids.org/openssl.cnf.html</a><br><br>It has helped me to understand better what is failing to work, some of<br>which I described in an earlier posting in this thread. There are now a
<br>few people needing help here! Any brains in shining armor around?<br><br>Thanks again!<br><br>Steven Stromer<br><br></blockquote></div><br>You have the most knowledge regarding this problem.&nbsp; Don't ask others to battle for you. Pick up the gauntlet.&nbsp;File the bug report.&nbsp; Be your own knight!
<br>