LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Webmin SSL Cert (https://www.linuxquestions.org/questions/linux-security-4/webmin-ssl-cert-104245/)

hakcenter 10-15-2003 10:32 AM

Webmin SSL Cert
 
I have webmin working with its own cert.

I'm just getting annoyed with its self signed cert, and want to create another certificate signed by my CA Root.

Everytime I use openssl to create the cert and sign it via the root... webmin won't accept it.


Does anyone know the proper switches to create the webmin cert?

unSpawn 10-20-2003 03:41 PM

Could you show us how you made it?

hakcenter 10-21-2003 10:15 AM

openssl req -config openssl.cnf -new -out my-server.csr
openssl rsa -in privkey.pem -out my-server.key

then have the CA Root (unfortunatly is a 2k DC) sign the csr

And then webmin complains that its not pem format...

unSpawn 10-22-2003 03:15 PM

then have the CA Root (unfortunatly is a 2k DC) sign the csr
Can you verify the returned cert is a PEM format cert or something else, like PKCS?
If it is PKCS, then you could try this:
openssl pkcs7 -text -inform PEM -in <DCsignedkey> -print_certs > my-server.crt
cat my-server.key > my-server.pem; cat my-server.crt >>my-server.pem
then strip the PEM leaving the 1st private key and the last certificate.

hakcenter 10-22-2003 04:21 PM

The key only comes in DER or base64 format from the CA Root :(

Anyhow your commands have helped, I got it working, and its being a whore now saying that the name 'doesn't' match..

Even though it actually does, damn webmin, lol.


All times are GMT -5. The time now is 08:20 PM.