Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying OpenVPN 2 Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
OpenVPN 2 Cookbook

OpenVPN 2 Cookbook

4.1 (12)
close
close
OpenVPN 2 Cookbook

OpenVPN 2 Cookbook

4.1 (12)

Overview of this book

Table of Contents (19 chapters)
close
close
OpenVPN 2 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1
Index

Using a hardware token


This recipe will demonstrate how to use a hardware token as a replacement for an X509 certificate and the corresponding private key.

Getting ready

We use the following network layout:

Keep the hardware token from the first recipe at hand. For this recipe, the server computer was running CentOS 5 Linux and OpenVPN 2.1.1. The client was running Fedora 12 Linux and OpenVPN 2.1.1. Keep the server configuration file basic-udp-server.conf from the Chapter 2 recipe Server-side routing at hand.

How to do it...

  1. Start the server using the configuration file basic-udp-server.conf:

    [root@server]# openvpn --config basic-udp-server.conf
    
  2. Next, create the client configuration file:

    client
    proto udp
    remote openvpnserver.example.com
    
    port 1194
    
    dev tun
    nobind
    
    ca       /etc/openvpn/cookbook/ca.crt
    tls-auth /etc/openvpn/cookbook/ta.key 1
    
    ns-cert-type server
    
    pkcs11-providers /usr/lib64/libeTPkcs11.so
    pkcs11-id 'Aladdin\x20Ltd\x2E/eToken/001a01a9/Cookbook/20100703'

    The last directive pkcs11...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
OpenVPN 2 Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon