a692 Generating Certificates / using the local .mc file - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > General

General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Reply
 
Thread Tools Display Modes
  #1  
Old January 20th, 2009, 10:53
beastie_007 beastie_007 is offline
Junior Member
 
Join Date: Jan 2009
Location: Groningen, The Netherlands
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Generating Certificates / using the local .mc file

http://www.freebsd.org/doc/en_US.ISO...k/openssl.html

Generating Certificates

I just have updated the last opensslversion and everything went fine.

I also made the Certificates written like the way on the page above.
No problem till this point, but ....after 14.9.2 Using Certificates, an Example


you see written........ The following lines should be placed inside the local .mc file:


my question wich file exacly do they mean with 'the local .mc file' where i have to add the following lines to

dnl SSL Options
define(`confCACERT_PATH',`/etc/certs')dnl
define(`confCACERT',`/etc/certs/new.crt')dnl
define(`confSERVER_CERT',`/etc/certs/new.crt')dnl
define(`confSERVER_KEY',`/etc/certs/myca.key')dnl
define(`confTLS_SRV_OPTIONS', `V')dnl

because , when i use the following command 'locate .mc' i see a lot of files for example in the /etc/mail directory
bsd7x# locate .mc
/etc/mail/freebsd.mc
/etc/mail/freebsd.submit.mc
/usr/ports/lang/rscheme/files/patch-..__modules__corelib__corelib.mcf
/usr/share/sendmail/cf/cf/chez.cs.mc
/usr/share/sendmail/cf/cf/clientproto.mc
/usr/share/sendmail/cf/cf/cs-hpux10.mc
/usr/share/sendmail/cf/cf/cs-hpux9.mc
/usr/share/sendmail/cf/cf/cs-osf1.mc
/usr/share/sendmail/cf/cf/cs-solaris2.mc
/usr/share/sendmail/cf/cf/cs-sunos4.1.mc
/usr/share/sendmail/cf/cf/cs-ultrix4.mc
/usr/share/sendmail/cf/cf/cyrusproto.mc
/usr/share/sendmail/cf/cf/generic-bsd4.4.mc
/usr/share/sendmail/cf/cf/generic-hpux10.mc
/usr/share/sendmail/cf/cf/generic-hpux9.mc
/usr/share/sendmail/cf/cf/generic-linux.mc
/usr/share/sendmail/cf/cf/generic-mpeix.mc
/usr/share/sendmail/cf/cf/generic-nextstep3.3.mc
/usr/share/sendmail/cf/cf/generic-osf1.mc
/usr/share/sendmail/cf/cf/generic-solaris.mc
/usr/share/sendmail/cf/cf/generic-sunos4.1.mc
/usr/share/sendmail/cf/cf/generic-ultrix4.mc
/usr/share/sendmail/cf/cf/huginn.cs.mc
/usr/share/sendmail/cf/cf/knecht.mc
/usr/share/sendmail/cf/cf/mail.cs.mc
/usr/share/sendmail/cf/cf/mail.eecs.mc
/usr/share/sendmail/cf/cf/mailspool.cs.mc
/usr/share/sendmail/cf/cf/python.cs.mc
/usr/share/sendmail/cf/cf/s2k-osf1.mc
/usr/share/sendmail/cf/cf/s2k-ultrix4.mc
/usr/share/sendmail/cf/cf/submit.mc
/usr/share/sendmail/cf/cf/tcpproto.mc
/usr/share/sendmail/cf/cf/ucbarpa.mc
/usr/share/sendmail/cf/cf/ucbvax.mc
/usr/share/sendmail/cf/cf/uucpproto.mc
/usr/share/sendmail/cf/cf/vangogh.cs.mc


maybe i have to make a new file called .mc , i do not know wich file i have to change

can anyone help me to solv this problem
beastie_007
Reply With Quote
  #2  
Old January 20th, 2009, 11:25
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,935
Thanks: 30
Thanked 1,932 Times in 1,351 Posts
Default

If you go into /etc/mail and type 'make', you will find a your.host.name.mc file which you can use. See /usr/share/sendmail/cf/README for anything you might put in there.

If you alter the .mc file and type 'make' again, it will produce .cf files which Sendmail can use. Move the stock submit.cf and sendmail.cf out of the way, and symlink your.host.name.cf to sendmail.cf and your.host.name.submit.cf to submit.cf and restart sendmail.

There are probably ways to tell Sendmail to use your.host.name.cf directly, but I'm so used to building my own configs (sh Build install-cf CF=) and building my own Sendmail that I've grown unaccustomed to using the /etc/mail files.
Reply With Quote
  #3  
Old January 21st, 2009, 14:25
beastie_007 beastie_007 is offline
Junior Member
 
Join Date: Jan 2009
Location: Groningen, The Netherlands
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My problem about the way how to implement the ssl certificate in the sendmailprogramm has solved. I can immagine that some people have their own way to install and configure software / programms when they are more knowing about an particilar operatingsystem. I just readed the info on the webpage on freebsd.org how to become more familair with freebsd and step by step to learn how to install and fix the problems.

I allready have read many other ways of installing and configuring software from freebsd-users then what i have read in books or on the internet.

Thanx for your support
beastie_007
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] sh check file size graudeejs Userland Programming & Scripting 8 January 18th, 2009 20:01
Can't get local script to start at boot time SnowRabbit General 10 December 29th, 2008 01:00
default local fonts Slesarev GNOME 18 December 12th, 2008 23:40
NAT: no NAT for local traffic mgp Networking 7 December 9th, 2008 22:27
Utility to show which process ids (PIDs) are generating most I/O LaR3 General 5 November 20th, 2008 23:27


All times are GMT +1. The time now is 23:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0