On 12 May 2014, at 09:36, Gabriel Nadler <
nadler...@gmail.com> wrote:
> My current setup looks like this (I'm on a Synology NAS):
>
> certificate = "/usr/local/umurmur/var/mumble.crt";
> private_key = "/usr/local/umurmur/var/mumble.key";
> ca_path = "/etc/ssl/certs/";
Looks good.
>
>
> and I copied the two *.pem files I got from StartSSL into that folder making them readable for all users on the system.
I forgot to mention, for OpenSSL to find the CA/Intermediate certs, you need to symlink them to their "hash" inside of the specified directory.
For example I've got it configured that way (for CACert):
$ ls -l /etc/openssl/certs/
-rw-r--r-- 1 root wheel 2569 Oct 11 2004 CACert Signing Authority.pem
-rw-r--r-- 1 root wheel 2610 May 23 2011 CACert Class 3 Root.pem
....
lrwxr-xr-x 1 root wheel 29 Apr 24 09:33 99d0fa06.0 -> CACert Signing Authority.pem
lrwxr-xr-x 1 root wheel 23 Apr 24 09:34 590d426f.0 -> CACert Class 3 Root.pem
To get the hashes you can use openssl itself:
openssl x509 -noout -hash -in <ca-certificate-file>
Where <ca-certificate-file> is your filename for the CA/Intermediate .pem file. Please note, you've got to add ".0" (without the quotes) to the symlink name.
You could also do it the "lazy" way:
ln -s my_ca.pem `openssl x509 -hash -noout -in my_ca.pem`.0
replacing my_ca.pem with your actual filename.
Please let me know if that fixed your issue. For more info:
http://gagravarr.org/writing/openssl-certs/others.shtml#ca-openssl
If it works, I think I'll add an entry in the wiki.