< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate] using certificates in reSIProcate


I believe a simple way to achieve this is when you are instantiating the SipStack.
The directory to read the certs from is specified in the construction of the Security object.
 
 
if (mProxy.uri().scheme() == resip::Symbols::Sips) {
    Security* pSecurity = new Security(Data("../etc/"));
    TheStack= new SipStack(pSecurity);
    TheStackThread = new StackThread(*TheStack);
    TheStack->addTransport(TLS, SIP_TLS_PORT, V4, StunDisabled, Data::Empty, Data::from(strDomain));
    mProxy.param(p_transport) = "tls";
    InfoLog(<< "TLS enabled");
} else {
    TheStack= new SipStack();
    TheStackThread = new StackThread(*TheStack);
    InfoLog(<<"TLS is not enabled");
}
 
 
Bill Kovar
 


From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx [mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx] On Behalf Of Zohar Landau (TA)
Sent: Wednesday, March 14, 2007 2:44 AM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] using certificates in reSIProcate

Hi ,

 

I'm trying to find out how to use a certificate I've created using openssl (where to put the file and how to make the application know which file it is).

Tried to search the wiki but couldn't find anything.

 

Thanks

Zohar