mirror of
https://git.dn42.dev/wiki/wiki
synced 2025-03-15 03:43:33 +00:00
.pem vs .pub consistency (initial keygen section generates .pem files, the rest referred to .pub files)
This commit is contained in:
parent
fa189c9311
commit
b2821b21cd
@ -47,7 +47,7 @@ In this example, we'll use the following settings:
|
|||||||
|
|
||||||
1. Add your peer's public key
|
1. Add your peer's public key
|
||||||
|
|
||||||
root@debian:~# cat << EOF > /etc/ipsec.d/public/peerkey.pub
|
root@debian:~# cat << EOF > /etc/ipsec.d/public/peerkey.pem
|
||||||
-----BEGIN PUBLIC KEY-----
|
-----BEGIN PUBLIC KEY-----
|
||||||
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAuQ1hX3+AEiLis4p5jvmY
|
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAuQ1hX3+AEiLis4p5jvmY
|
||||||
IfEgaq9488GU2nkuR1gZK4/CphrccmztgADU/TkiE5IOOo7zKPparcl8dZwJfX+j
|
IfEgaq9488GU2nkuR1gZK4/CphrccmztgADU/TkiE5IOOo7zKPparcl8dZwJfX+j
|
||||||
@ -76,8 +76,8 @@ In this example, we'll use the following settings:
|
|||||||
ikelifetime=28800s
|
ikelifetime=28800s
|
||||||
# authentication
|
# authentication
|
||||||
authby=pubkey
|
authby=pubkey
|
||||||
leftrsasigkey=/etc/ipsec.d/public/mykey.pub
|
leftrsasigkey=/etc/ipsec.d/public/mykey.pem
|
||||||
rightrsasigkey=/etc/ipsec.d/public/peerkey.pub
|
rightrsasigkey=/etc/ipsec.d/public/peerkey.pem
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
3. All done! Configure the phase 2 parameters as you otherwise would.
|
3. All done! Configure the phase 2 parameters as you otherwise would.
|
||||||
@ -108,8 +108,8 @@ In this example, we'll use the following settings:
|
|||||||
ikelifetime=28800s
|
ikelifetime=28800s
|
||||||
# authentication
|
# authentication
|
||||||
authby=pubkey
|
authby=pubkey
|
||||||
leftrsasigkey=/etc/ipsec.d/public/mykey.pub
|
leftrsasigkey=/etc/ipsec.d/public/mykey.pem
|
||||||
rightrsasigkey=/etc/ipsec.d/public/peerkey.pub
|
rightrsasigkey=/etc/ipsec.d/public/peerkey.pem
|
||||||
# phase 2 parameters
|
# phase 2 parameters
|
||||||
esp=aes128-sha1-modp1536!
|
esp=aes128-sha1-modp1536!
|
||||||
lifetime=3600s
|
lifetime=3600s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user