Project

General

Profile

Change the certificate

Keren Meir
Added over 5 years ago

Hi,

I'm working on tigase XMPP server with several domain, it is actually sub-domains such as: a.mydomain.com, b.mydomain.com, c.mydomain.com etc...

Is it possible to work with one certificate for all these sub-domain? I want *.mydomain.com.PEM instead of one PEM for each domain.

Thanks


Replies (13)

Added by Wojciech Kapcia TigaseTeam over 5 years ago

It was already requested and it is possible (see #435). You should use following configuration:

basic-conf/virt-hosts-cert-*.domain.com=/path/to/certificate.pem

Added by Keren Meir over 5 years ago

I added the line

basic-conf/virt-hosts-cert-*.mydomain.com=certs/mydomain.com.pem

to my init.properties.

When I connected with a user of "a.mydomain.com" the Tigase creates "a.mydomain.com.PEM" file anyway.

Is that means that this line do nothing...? and the tigase use this file instead of "mydomain.com.PEM" as I want?

Added by Wojciech Kapcia TigaseTeam over 5 years ago

Which Tigase version do you use?

Added by Keren Meir over 5 years ago

Where can I check?

I'm pretty sure that I'm using 5.2.0

Added by Wojciech Kapcia TigaseTeam over 5 years ago

For example it's displayed in service discovery

Added by Keren Meir over 5 years ago

I changed the code already so I cant see the version

Anyway, I think it is 5.2.0

Added by Wojciech Kapcia TigaseTeam over 5 years ago

Well, this feature was added during the course of 5.2.0 development so it may happen that you are simply using version that doesn't have this implemented yet thus my question about exact version and build you are using. Without that it's hard to tell whether it's a bug or simply usage of outdated code.

If you are got sources from repository you could check commit history; alternatively you could simply compare your sources with the changes applied in the linked ticket and verify that they are there.

Added by Keren Meir over 5 years ago

Can you please direct me to the specific version with this change? or at least to the files with the changes..?

Thanks!

Added by Wojciech Kapcia TigaseTeam over 5 years ago

The changes were made in revision f008fc1f427be9ffa56e638f2bf2a8c258cbb852 It should be included in tigase-server-5.2.0-beta2

Added by Keren Meir over 5 years ago

Thanks! I think I'll get the beta 3 and merge my changes into it.

  1. Do you have any estimation for when we final version of 5.2.0 will be ready?

  2. Is the version in the repository is 5.2.0 beta 3?

Added by Wojciech Kapcia TigaseTeam over 5 years ago

  1. we are working hard on finalizing it but we don't have specific date of release yet.

  2. as with each repository the master branch holds all the recent changes; you can however check out beta3 sources as they were tagged in the repository: https://projects.tigase.org/projects/tigase-server/repository/show?rev=tigase-server-5.2.0-beta3

Added by Keren Meir over 5 years ago

Hi,

I download 5.2.0 beta3 version and I have many errors in the code, for example:

  • Some function of "CertificateUtil" doesn't exist (sort in "SSLContextContainer", extractXmppAddrs in "IOService" etc..)

  • Some Element functon doesn't exist (getAttributeStaticStr in "RepositoryItemAbstract", getCDataStaticStr in "ClusterElement" etc..)

and more..

I'm using javaSE-1.6

Probably some JARs are missing..? where can I find them?

Thanks

Added by Keren Meir over 5 years ago

After many many changes - it works!

I changed to javaSE-1.7, changed the version of some existing JARs, added some JARs and now it works!

Thank you very much!

    (1-13/13)