• February 23, 2025, 01:49:05 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: [SOLVED] GateWay Certificate  (Read 12126 times)

juanjo

  • Level 2 Member
  • **
  • Posts: 52
[SOLVED] GateWay Certificate
« on: September 07, 2010, 02:05:00 AM »

Hi to all people:

I would like to implement certificates in a ipsec lan-to-lan VPN. I have followed the instructions related to document "How_to_create_Certification_Authority_and_import_into_firewall_v1.1".

When i try to activate changes the next error is displayed:

Error E4814/IPSEC in "ipsec-vpn-tunnel.IPsecTunnel", property "GatewayCertificate":
  - Unable to get alternative names for gateway certificate

Somebody knows what is this error ?
How to fix this error ?

Thanks in advance
« Last Edit: September 11, 2010, 02:04:30 AM by juanjo »
Logged

danilovav

  • Level 4 Member
  • ****
  • Posts: 424
  • Alexandr Danilov
Re: GateWay Certificate
« Reply #1 on: September 07, 2010, 11:12:52 AM »

Did you specified email when you issued sertificates?
Logged
BR, Alexandr Danilov

juanjo

  • Level 2 Member
  • **
  • Posts: 52
Re: GateWay Certificate
« Reply #2 on: September 07, 2010, 12:55:41 PM »

Did you specified email when you issued sertificates?

Yes, all fields are filled.

Can be something related to LDAP or HTTP in order to search Certificate Revocation List (CRL) ?

I don't t know what to to. I don't know. ???  ???  ???

Who are the DFL-210 flash programmers ?
Logged

juanjo

  • Level 2 Member
  • **
  • Posts: 52
Re: GateWay Certificate
« Reply #3 on: September 07, 2010, 02:40:48 PM »

Did you specified email when you issued sertificates?

Hi danilovav:

Investigating that problem i found that although i specified the e-mail address and it's displayed in emissor, the e-mail address is not filled in the field "e-mail" of the DFL-210, and Windows 2003 server doesn't have other field to fill this data.

I will investigate more.

Thank you
Logged

danilovav

  • Level 4 Member
  • ****
  • Posts: 424
  • Alexandr Danilov
Re: GateWay Certificate
« Reply #4 on: September 07, 2010, 07:20:41 PM »

Try to generate certificate by OpenSSL
Logged
BR, Alexandr Danilov

juanjo

  • Level 2 Member
  • **
  • Posts: 52
Re: GateWay Certificate
« Reply #5 on: September 08, 2010, 07:02:01 AM »

Try to generate certificate by OpenSSL

Thanks danilovav

I'm using ELDOS instead OpenSSL, now certificates are installed but now DFL-210 display this error when it wants to connect

2010-09-08
15:51:56 Warning IPSEC
1802022   
 
ike_sa_failed
no_ike_sa
statusmsg="Invalid signature" local_peer="172.16.0.200:4500 ID usr@fqdn(any:0,[0..20]=naredt2340rty@msn." remote_peer="xx.yy.zz.kk:4500 ID No Id" initiator_spi="ESP=0x7328ec3d, AH=0x1afe1271, IPComp=0xf15089ed" 


What can be this error ??
Logged

danilovav

  • Level 4 Member
  • ****
  • Posts: 424
  • Alexandr Danilov
Re: GateWay Certificate
« Reply #6 on: September 08, 2010, 11:00:28 AM »

I hope, you hade two self-signed certificates (not one)?
Please show commands what you used.
Logged
BR, Alexandr Danilov

juanjo

  • Level 2 Member
  • **
  • Posts: 52
Re: GateWay Certificate
« Reply #7 on: September 09, 2010, 02:25:13 AM »

I hope, you hade two self-signed certificates (not one)?
Please show commands what you used.

Hi danilovav and the world wide:

I tried to do with openssl and does not work. The steps are the next:

1.- Create one CA ROOT
2.- Create new certificate (for the gateway) request based on CA key
3.- Sign the certificate
4.- Get the RSA private key (needed by DFL-210) because in the file newreq.pem are encrypted.
5.- Repeat steps from 2 to 4 for the other DFL-210 (the other end of the tunnel)

I Upload CA certificate in both firewalls,  gateway certificate A in firewall A and gateway certificate B in firewall B.

the first error is

2010-09-09
15:43:32 Warning IPSEC
1802715   
event_on_ike_sa
side=Initiator msg="failed" int_severity=6 

and the next error is

2010-09-09
15:43:32 Warning IPSEC
1802715   

ike_sa_failed
no_ike_sa
statusmsg="Invalid signature" local_peer="172.16.0.200:4500 ID usr@fqdn(any:0,[0..20]=naredt2340rty@msn." remote_peer="xx.yy.zz.kk:4500 ID No Id" initiator_spi="ESP=0x7328ec3d, AH=0x1afe1271, IPComp=0xf15089ed" 


I have exactly the same error with ELDOS and OPENSSL.

Any ideas??
« Last Edit: September 09, 2010, 06:48:40 AM by juanjo »
Logged

juanjo

  • Level 2 Member
  • **
  • Posts: 52
Re: [SOLVED] GateWay Certificate
« Reply #8 on: September 11, 2010, 02:08:21 AM »

Hi to everybody:

At last, this problem has been solved.

The problems are:

1.- The exported key for each certificate was not valid.
2.- Certificate signing was not right.
3.- Duplicate fields in all certificates.

Thanks for your help, thanks to this forum

Best regards

Juanjo
« Last Edit: September 11, 2010, 02:10:10 AM by juanjo »
Logged

sav0808

  • Level 1 Member
  • *
  • Posts: 2
Re: [SOLVED] GateWay Certificate
« Reply #9 on: March 15, 2012, 02:46:16 AM »

Hi everybody! Hi Juanjo!
Can you write here how did you solve all 3 problems? Something like "How to...". I have the same problem, instructions on D-Link resources - not working. Many people, I think, need help from you!
Thank you!
Logged

juanjo

  • Level 2 Member
  • **
  • Posts: 52
Re: [SOLVED] GateWay Certificate
« Reply #10 on: March 16, 2012, 03:42:27 AM »

Hi everybody! Hi Juanjo!
Can you write here how did you solve all 3 problems? Something like "How to...". I have the same problem, instructions on D-Link resources - not working. Many people, I think, need help from you!
Thank you!

Hi sav0808:

I'm afraid that a tutorial as How To can be a bit large, but i will give you some instructions.

Windows certificates doesn't works on d'link firewalls. Idon't know the reason but it's sounds like some required fields are empty and firewalls require them.

The first is to select the tool to generate certificates. I choose OpenSSL that is available for Linux an Windows and it's free, but there are others.

The key is study this tool but only the commands that you need and test the certificates in the firewall. There are many documentation about this tool in internet.

I remember that first you need generate first the CA certificate, the next step is generate the gateway certificate based on the CA certificate with it's own key, and the final step is sign the gateway certificate. I don't remember but i think that the policy of the gateway certificate must be "policy_anything"

After many frustrated testings at the end it's work.

The firewall needs 3 files: CA certificate, gateway certificate and the key of the gateway certificate. If you need ipsec with other firewall, the CA certificate must be the same, but the gateway certificate and key must be different but both based on the same CA.

And more or less that is all. But be carefull with the exported key for each certificates and how sign them.

Upload the certificates in the firewall and check what fields are empty in the web ui of the firewall.

Be more explicit about your problem, please. Whta is the log of the firewall?
Regards
Logged