Hello
I set up a owncloud server to work as a caldav server. I created a SSL Certificate and i changed the port from 443 to something random 29342 and i can connect to it fine.
To genenerate the certificate i followed this guide http://www.stephen-scotter.net/comp...n-please-double-check-the-installation-guides
it basically told me to use these commands
Like i said it works fine, but the reason why i set up this owncloud server is to use it on my phone with calDAV, but when i tried to connect to it via DAVdroid it says invalid certificate.
So i imported the server.crt on my android device and tried installing it manually, it didnt install. After trying with the app CAdroid to download the certificate it said i cant because CA has to be set to TRUE (CA=TRUE).
after google searching how to do that i saw that the certificate needs to be x509v3
thats when i found this german post https://thomas-leister.de/internet/eine-eigene-openssl-ca-erstellen-und-zertifikate-ausstellen/ summary on what it says
then he writes i should install this on my device like my phone, which worked.
but now im confused with the last step because he says i should do this CA for the server side, but these files are all *.pem and hence the first guide i need *.key and *.crt files.
I thought ill just look for the conf file to redirect apache to these files it created, but i dont know where and i dont know if it would work. i checked the httpd-ssl.conf file and say the dir for the server.key and the server.crt file but in that last guide i get like 4 files which im not sure what to do.
can somebody help me? or is there an easier way?
I set up a owncloud server to work as a caldav server. I created a SSL Certificate and i changed the port from 443 to something random 29342 and i can connect to it fine.
To genenerate the certificate i followed this guide http://www.stephen-scotter.net/comp...n-please-double-check-the-installation-guides
it basically told me to use these commands
Code:
root@owncloud_1:/ # cd /tmp && mkdir keys && cd keys root@owncloud_1:/tmp/keys # openssl genrsa -des3 -out server.key 1024 root@owncloud_1:/tmp/keys # openssl req -new -key server.key -out server.csr root@owncloud_1:/tmp/keys # openssl rsa -in server.key.org -out server.key root@owncloud_1:/tmp/keys # openssl x509 -req -days 18250 -in server.csr -signkey server.key -out server.crt root@owncloud_1:/tmp/keys # cp server.crt /usr/pbi/owncloud-amd64/etc/apache24/ root@owncloud_1:/tmp/keys # cp server.key /usr/pbi/owncloud-amd64/etc/apache24/
Like i said it works fine, but the reason why i set up this owncloud server is to use it on my phone with calDAV, but when i tried to connect to it via DAVdroid it says invalid certificate.
So i imported the server.crt on my android device and tried installing it manually, it didnt install. After trying with the app CAdroid to download the certificate it said i cant because CA has to be set to TRUE (CA=TRUE).
after google searching how to do that i saw that the certificate needs to be x509v3
thats when i found this german post https://thomas-leister.de/internet/eine-eigene-openssl-ca-erstellen-und-zertifikate-ausstellen/ summary on what it says
Code:
openssl genrsa -aes256 -out ca-key.pem 2048 openssl req -x509 -new -nodes -extensions v3_ca -key ca-key.pem -days 1024 -out ca-root.pem -sha512
then he writes i should install this on my device like my phone, which worked.
Code:
openssl genrsa -out zertifikat-key.pem 4096 openssl req -new -key zertifikat-key.pem -out zertifikat.csr -sha512 openssl x509 -req -in zertifikat.csr -CA ca-root.pem -CAkey ca-key.pem -CAcreateserial -out zertifikat-pub.pem -days 365 -sha512
but now im confused with the last step because he says i should do this CA for the server side, but these files are all *.pem and hence the first guide i need *.key and *.crt files.
I thought ill just look for the conf file to redirect apache to these files it created, but i dont know where and i dont know if it would work. i checked the httpd-ssl.conf file and say the dir for the server.key and the server.crt file but in that last guide i get like 4 files which im not sure what to do.
can somebody help me? or is there an easier way?