09-26-2023 01:17 AM
Hi All ,
I found the information can deploy multi tunnel group but I confuse about configuration under webvpn
what is the attribute for saml idp / url sign-in / url-out ? because i have multi Azure APP for SAML Authen.
Please help me.
webvpn saml idp https://sts.windows.net/xxxxxxxxxxxxx/ (This is your Azure AD Identifier from the Set up Cisco AnyConnect section in the Azure portal) url sign-in https://login.microsoftonline.com/xxxxxxxxxxxxxxxxxxxxxx/saml2 (This is your Login URL from the Set up Cisco AnyConnect section in the Azure portal) url sign-out https://login.microsoftonline.com/common/wsfederation?wa=wsignout1.0 (This is Logout URL from the Set up Cisco AnyConnect section in the Azure portal)
Solved! Go to Solution.
10-02-2023 11:25 PM - edited 10-02-2023 11:27 PM
@Milos_Jovanovic Please help check with my understand .
For ASA/FTD , after get cert from CA Authorize
Example
1. Combine Cert
c:\OpenSSL-Win64\bin>openssl pkcs12 -export -out lm.pfx -inkey lm.key -in lm.cer -certfile lm_root.cer
2. Convert the pkcs12 into BASE64
c:\OpenSSL-Win64\bin> openssl base64 -in lm.pfx -out lm_pkcs12.pem
and Use lm_pkcs12.pem to install ASA side ?
For Azure
Can I use cert after Step 1(lm.pfx) to install Azure side ?
10-02-2023 11:35 PM
For ASA/FTD, you only need lm.cer and lm_root.cer. No private key is required on FW side, as it just needs to validate signed data from Azure side, so step #2 contains too much information. However, you could import that one too, if it makes it easier to you.
On Azure side, yes, data from step #1 is ok. However, I've never used cert signed by RootCA for this, it was always the self-signed one, so I have no idea will it work like this. You can try and share your experience.
Kind regards,
Milos
10-03-2023 12:39 AM
@Milos_Jovanovic
For this command "openssl pkcs12 -export -out lm.pfx -inkey lm.key -in lm.cer -certfile lm_root.cer"
If i not use command -inkey xxx.key command not work
10-03-2023 01:00 AM
Why do you need it? If you want to use certificate and its root, you can simply stack them in Notepad. In Base64 format, keep certificate on top, and bellow add RootCA in a single file. Something like:
Kind regards,
Milos
10-03-2023 01:19 AM
@Milos_Jovanovic
Oh!! I'm clear . Thank you so much.
10-03-2023 01:58 AM
@Milos_Jovanovic
I have small question . I try to convert file .cer to .pem(root.cert and cert from CA) and install on CLI ASA but not working
What is the root cause ?
10-03-2023 02:08 AM
How are you installing it? Try using "crypto ca authenticate TrustPointName".
Kind regards,
Milos
10-03-2023 02:22 AM
@Milos_Jovanovic
I try to use CLI command and must combine cert + private key first and root , It's working fine. Is it first CSR or not ? But I try no command key cannot generate CSR.
openssl req -new -sha256 -out request.csr -newkey rsa:2048 -keyout privatekey.key -config req.cnf
-----BEGIN PKCS12-----
cert+key
-----END PKCS12-----
-----BEGIN PKCS12-----
root
-----END PKCS12-----
10-03-2023 02:49 AM
Not sure I'm following... If you are following my advice, then you don't need PKCS12 there. On ASA, you need only certificate (plus chain) in Base64 (like PEM), and not private key. If you are importing just that one, then you should use something like this:
crypto ca trustpoint Microsoft.Azure
enrollment terminal
no ca-check
!
crypto ca authenticate Microsoft.Azure
!
You don't need to use "crypto ca import" command. If you however want to import private key, then you need PKCS with certificate and key.
CSR is just signing request, and you do not use it when combining cert for ASA (once CSR is signed, it becomes cert).
Kind regards,
Milos
10-04-2023 09:45 PM
@Milos_Jovanovic
Okay , I got your point . For trustpoint sp Can I use same procedure ?
10-04-2023 10:42 PM
For SP part you need to go with "import X pkcs12" option, as that one must contain identity certificate along with private key (this is how ASA/FTD presents itself to the outside world.
Kind regards,
Milos
10-04-2023 11:12 PM
@Milos_Jovanovic
Thank you so much for good advise.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide