[OpenSIPS-Users] Problem on load mediaproxy

Adrian Georgescu ag at ag-projects.com
Thu Jan 15 16:51:35 CET 2009


What you have pasted does not create any TLS certificates for  
MediaProxy, it simply copies them to CDRTool.

TLS certificate generation is general knowledge you can Google for it,  
there are many resources for how to create a TLS certificates.

Adrian

On Jan 13, 2009, at 12:21 PM, Alexandre Keller wrote:

> Hi Mr. Klaver and list.
>
> I've used the following how-to to create the certificates:
>
> "
> http://cdrtool.ag-projects.com/wiki/Install
> Create or copy both a media relay certificate and its key to /etc/ 
> cdrtool/mediaproxy.hostname.pem:
>
> cat /etc/mediaproxy/tls/relay.crt >> /etc/cdrtool/ 
> mediaproxy.hostname.pem
> cat /etc/mediaproxy/tls/relay.key >> /etc/cdrtool/ 
> mediaproxy.hostname.pem
> "
>
> Is it correct? Can you point me any other source of help?
>
> Thanks in advance again.
>
> -- 
> Atenciosamente,
>
> ALEXANDRE KELLER
>
> <pastedGraphic.tiff>
>
>
> +55 11 4063 - 9374
> http://www.asteriks.com.br/
>
> "Dinheiro é a consequência de um trabalho bem feito
> e não o motivo para se fazer um bom trabalho."
>
>
>
>
> On 13/01/2009, at 08:31, Ruud Klaver wrote:
>
>> Hi,
>>
>> On 08 Jan 2009, at 14:52, Alexandre Keller wrote:
>>
>>> Hi there.
>>>
>>> Anyone, please, can help me?
>>>
>>> When I start mediaproxy the following messages appear.
>>>
>>> Jan  8 11:29:59 sip media-relay[2292]: [-] Log opened.
>>> Jan  8 11:29:59 sip media-relay[2292]: [-] Starting MediaProxy  
>>> Relay 2.3.1
>>> Jan  8 11:30:00 sip media-relay[2292]: [-] Set resource limit for  
>>> maximum open file descriptors to 11000
>>> Jan  8 11:30:00 sip media-relay[2292]: [-] fatal error: failed to  
>>> create MediaProxy Relay: Base64 unexpected header error.
>>> Jan  8 11:30:00 sip media-relay[2292]: [-] Traceback (most recent  
>>> call last):
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]     --- <exception  
>>> caught here> ---
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]       File "/usr/bin/ 
>>> media-relay", line 54, in <module>
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]         relay =  
>>> MediaRelay()
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]       File "/var/lib/ 
>>> python-support/python2.5/mediaproxy/relay.py", line 295, in __init__
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]         self.cred =  
>>> X509Credentials(cert_name='relay')
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]       File "/var/lib/ 
>>> python-support/python2.5/mediaproxy/tls.py", line 132, in __init__
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]          
>>> twisted.X509Credentials.__init__(self, self.X509cert,  
>>> self.X509key, [self.X509ca], [self.X509crl])
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]       File "/var/lib/ 
>>> python-support/python2.5/mediaproxy/tls.py", line 99, in __get__
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]         return  
>>> descriptor.get()
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]       File "/var/lib/ 
>>> python-support/python2.5/mediaproxy/tls.py", line 82, in get
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]         self.object =  
>>> self.klass(f.read())
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]       File "<string>",  
>>> line 1, in __init__
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]       File "/var/lib/ 
>>> python-support/python2.5/gnutls/validators.py", line 273, in  
>>> check_args
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]         return  
>>> func(*func_args)
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]       File "/var/lib/ 
>>> python-support/python2.5/gnutls/crypto.py", line 240, in __init__
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]          
>>> gnutls_x509_crl_import(self._c_object, byref(data), format)
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]       File "/var/lib/ 
>>> python-support/python2.5/gnutls/library/errors.py", line 64, in  
>>> _check_status
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]         raise  
>>> GNUTLSError(ErrorMessage(retcode))
>>> Jan  8 11:30:00 sip media-relay[2292]: [-]      
>>> gnutls.errors.GNUTLSError: Base64 unexpected header error.
>>>
>>> Thanks in advance
>>>
>>> -- 
>>> Atenciosamente,
>>>
>>> ALEXANDRE KELLER
>>
>> There seems to be an error while reading one of the certificate  
>> files you specified. You should check if they are in the correct  
>> format.
>>
>> Ruud Klaver
>> AG Projects
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090115/2c5691d0/attachment-0001.htm 


More information about the Users mailing list