Security Internetworking Experts


Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» Security Internetworking Experts   » Security   » CCIE Security Lab Forum   » IPSec with RSA Encrypted NONCES

UBBFriend: Email this page to someone!    
Author Topic: IPSec with RSA Encrypted NONCES
NewAgeQuanta
Specialist

Member # 32102

Member Rated:
posted June 16, 2012 04:56 PM      Profile for NewAgeQuanta     Send New Private Message      Edit/Delete Post  Reply With Quote 
Guys,

Been revisiting using authentication rsa-encr for IKE phase 1.

I was able to get it to work but have some very pertinent questions.

Here was the scenario that worked:-

On both peers, RSA key-pairs were generated WITHOUT options.

"crypto key generate rsa"

Pretty much the default which creates a labeled key "hostname.domainname"

The public keys were displayed on the terminal using "show cry key mypubkey rsa" and pasted on the other router as an addressed key.

So far so good.

What I am having problems with is using any of the options during key generation, other than general-keys (which is essentially the default). Using usage-keys, encryption or label does not work. The first router that gets the encrypted payload (encrypted using its pasted public key on the sender) complains that it is unable to decrypt the payload.

%CRYPTO-6-IKMP_CRYPT_FAILURE

This pretty much means its not using the right private key to decrypt the message.

Anyway, does anybody know a resource that describes how to use custom keys to get this type of IKE working or if anybody knows from experience and has any pointers?

Thanks,

Nic

Posts: 73 | From: US | Registered: Mar 2012  |  IP: Logged
NewAgeQuanta
Specialist

Member # 32102

Member Rated:
posted June 16, 2012 06:04 PM      Profile for NewAgeQuanta     Send New Private Message      Edit/Delete Post  Reply With Quote 
After further experimentation, I take back some of the stuff I said above.

Essentially, it seemed very weird that general-keys were working and usage-keys, which is the same as general-keys but using separate pairs for signatures and encryption, were not working.

So I was able to get the configuration working with usage-keys.

What I am still unable to do is to use a key with a custom label. To get the config working, either with general or usage keys, I still have to generate the key sans a label.

So can it be done with a custom label or not?

Nic

Posts: 73 | From: US | Registered: Mar 2012  |  IP: Logged
Kingsley Charles (CCSP, CCNP, CCIP)
Brainiac

Member # 29872

Member Rated:
posted June 17, 2012 12:11 AM      Profile for Kingsley Charles (CCSP, CCNP, CCIP)     Send New Private Message      Edit/Delete Post  Reply With Quote 
It should work with labels but never tried.

With regards
Kings

Posts: 887 | From: India | Registered: Jun 2010  |  IP: Logged
theevilmuffin
I need a life

Member # 23191

Member Rated:
posted June 17, 2012 12:59 PM      Profile for theevilmuffin     Send New Private Message      Edit/Delete Post  Reply With Quote 
what identity are you matching on?

you're not using vrf? I found that i needed to use a isakmp profile

Posts: 1065 | From: UK | Registered: Sep 2007  |  IP: Logged
NewAgeQuanta
Specialist

Member # 32102

Member Rated:
posted June 17, 2012 01:29 PM      Profile for NewAgeQuanta     Send New Private Message      Edit/Delete Post  Reply With Quote 
Evil,

When I initially did the post, I was using plain old crypto maps so no profile was needed.

Later, I did modify the config for VTI and was matching on addresses as identities. In this case, I found the need to use an ISAKMP profile with a keyring as well.

Nic

Posts: 73 | From: US | Registered: Mar 2012  |  IP: Logged
NewAgeQuanta
Specialist

Member # 32102

Member Rated:
posted June 17, 2012 01:31 PM      Profile for NewAgeQuanta     Send New Private Message      Edit/Delete Post  Reply With Quote 
BTW, I xposted this to another forum. Some interesting exchanges there. Not sure if we are allowed to use these links here but for the sake of spreading the wealth of knowledge, so to speak.

https://learningnetwork.cisco.com/thread/43926?tstart=0

Nic

Posts: 73 | From: US | Registered: Mar 2012  |  IP: Logged


All times are Eastern Time  
Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Printer-friendly view of this topic
Hop To:


Contact Us | Security Internetworking Experts