Hello everybody. I consider myself pretty decent with setting up FreeBSD but when it comes to SSL, I really don't get it. If somebody can point me to a good in-depth guide, that would be great. Particularly encompassing FreeBSD and OpenSSL.
Anyway, I am configuring a new mail server and I just need somebody to look at this command I am using to generate a self-signed certfile in .pem format for IMAP. Do I really just need to run this command and then stick the filepath at
in the imapd-ssl conf file? (I used 9999 because I don't want to have to update the file due to reasons.)
[cmd=]sudo openssl req -new -x509 -nodes -out imapd.pem -keyout imapd.pem -days 9999[/cmd]
I looked up what all the parameters do in an effort to understand but I don't have any experience with SSL really. I did run Wireshark and the IMAP communication seems to be encrypted but I work under a sysadmin who has never set up PEM mail and insists I must create a .crt, .key, and .csr file even though there is no place to put those in imapd-ssl and everything I read seems to indicate you only need a single .pem file for IMAP SSL.
Any help is appreciated. Thank you!
Anyway, I am configuring a new mail server and I just need somebody to look at this command I am using to generate a self-signed certfile in .pem format for IMAP. Do I really just need to run this command and then stick the filepath at
Code:
TLS_CERTFILE=
[cmd=]sudo openssl req -new -x509 -nodes -out imapd.pem -keyout imapd.pem -days 9999[/cmd]
I looked up what all the parameters do in an effort to understand but I don't have any experience with SSL really. I did run Wireshark and the IMAP communication seems to be encrypted but I work under a sysadmin who has never set up PEM mail and insists I must create a .crt, .key, and .csr file even though there is no place to put those in imapd-ssl and everything I read seems to indicate you only need a single .pem file for IMAP SSL.

Any help is appreciated. Thank you!
Code:req: The req command primarily creates and processes certificate requests in PKCS#10 format. It can additionally create self signed certificates for use as root CAs for example. -new: Generates a new certificate request. -x509: Outputs a self signed certificate instead of a certificate request. -nodes: The private key is not encrypted. -out imapd.pem: Specifies the output filename. -keyout: the filename to write the newly created private key to -days: When the -x509 option is being used this specifies the number of days to certify the certificate for.