HP 250m Biała Księga

Przeglądaj online lub pobierz Biała Księga dla Oprogramowanie HP 250m. HP 250m White Paper Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 95
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 0
1
HP Jetdirect and SSL/TLS
J
une 2008
Table of Contents:
Introduction ..................................................................................................................................... 1
What is SSL/TLS? ............................................................................................................................ 2
HTTPS Decoded............................................................................................................................... 3
Digital Certificates ........................................................................................................................... 9
Public Key Infrastructure and Public Key Certificate Basics .................................................................. 12
SSL/TLS Protocol Basics .................................................................................................................. 20
Using HTTPS with HP Jetdirect ......................................................................................................... 26
A Detailed Look at the SSL/TLS Connection.......................................................................................52
SSL/TLS Server Settings .................................................................................................................. 60
HP Jetdirect as an SSL/TLS Client..................................................................................................... 61
SSL/TLS Client: Understanding Certificate Chains .............................................................................. 77
SSL/TLS Client: Certificates and Name Verification ............................................................................ 83
IPP over SSL/TLS ............................................................................................................................ 89
HP Jetdirect Certificate Guidelines.................................................................................................... 94
Embedded Devices and Digital Certificates .......................................................................................94
Which HP Jetdirect Products Support SSL/TLS? .................................................................................. 95
Summary ...................................................................................................................................... 95
Introduction
HP Jetdirect introduced SSL/TLS support in early 2002 with the 615n EIO Print Server. A free
firmware upgrade allowed the 610n EIO print server, shipped in 2000, the same capability.
Suddenly, a few million HP Jetdirect EIO cards had SSL/TLS capability. Why?
The answer was secure management. HP printing and imaging devices were becoming more
complex and more feature oriented. They were becoming valuable assets to a company’s
infrastructure. Having the ability to use a browser to manage a device using HTTP was one thing,
using the same browser and using HTTPS to manage it securely was a great benefit. Unfortunately,
many users of HTTPS are under a false sense of security because they have not deployed SSL/TLS
white
p
a
p
er
Przeglądanie stron 0
1 2 3 4 5 6 ... 94 95

Podsumowanie treści

Strona 1 - white

1 HP Jetdirect and SSL/TLS June 2008 Table of Contents: Introduction ...

Strona 2 - What is SSL/TLS?

10 Figure 12 - IE7 Certificate Error 1 This screen is a lot different from IE6 – notice the red X symbols and explanatory text. The way the inform

Strona 3 - HTTPS Decoded

11 Figure 13 – IE7 Certificate Error 2 Notice the red URL and the “Certificate Error” message. Essentially, to go back to our story, Internet Expl

Strona 4

12 Public Key Infrastructure and Public Key Certificate Basics Let’s go back to the certificate information dialog, shown in Figure 14: Figure 14

Strona 5

13 Message DeliveryUserEncryption PerformedUserDecryption PerformedUnencrypted MessageUnencrypted Message Figure 15 - Symmetric Cryptography In Figu

Strona 6

14 Figure 16 - Asymmetric Cryptography Here we can see the difference between asymmetric and symmetric cryptography. One key can be used for encryp

Strona 7

15 • A hash – also known as a message digest. A hash is the output of a one way function that attempts to ensure the integrity of the message (i.e.,

Strona 8

16 Figure 18 - Digital Signature Verification Here we see how John uses Jack’s public key to verify the message. Jack’s public key is the only key

Strona 9 - Digital Certificates

17 JackCertificate Authority(Also performs Identity Verification on Jack)Jack’s Public KeyJack’s Private KeyCA’s Public KeyCA’s Private KeyCertificate

Strona 10

18 Figure 20 - Public Key Certificates Here we can see that everyone’s public key certificate is, well – um, public. The important thing to note i

Strona 11

19 JackJack’s Public KeyJack’s Private KeyIdentity Info +Jack’s Public KeyJackJack’s Private Key(Stays Private)Jack’s Public KeyJack’s self-signed Cer

Strona 12

2 correctly. One of the purposes of this whitepaper is to show administrators how to properly deploy SSL/TLS so that it can be used securely. SSL/

Strona 13

20 authority’s self-signed certificate will have a purpose to create certificates for other entities, usually subordinate certificate authorities. It

Strona 14

21 Client ServerTCPSSL RecordHandshakeTCP Connection EstablishedClient HelloSupported Ciphers Random # Figure 23 -Client Hello Here we already have a

Strona 15

22 Figure 24 - Server Hello The server responds with a Server Hello message which includes another random number and the server selected cipher. It

Strona 16

23 Figure 25 - Server Certificate Verification Here the client needs to verify the server is really who they say they are. There are a lot of check

Strona 17

24 ClientServer Random #Client Random #Server Public KeyCryptographic Key Generation:PreMasterSecretEncryptionE(PreMasterSecret) Figure 26 - Keying Ma

Strona 18

25 Figure 27 – Client Finished The client goes ahead and sends over the encrypted pre_master_secret and let’s the server know that it is changing o

Strona 19

26 Client ServerTCP SSL Record HandshakeTCP Connection EstablishedChange Cipher SpecFinished Figure 28 - Server Finished The server decrypts the pre

Strona 20 - SSL/TLS Protocol Basics

27 Figure 29 - CA Heirarchy The network is really simple and is composed of these CAs, a DNS server, a client, and an HP LaserJet MFP. Refer to F

Strona 21 - Client Server

28 Figure 30 - Network Diagram A pretty basic setup! The XP client is going to open a browser and talk to the 4345MFP. In short, the XP machine w

Strona 22

29 Every Jetdirect will create a self-signed certificate the first time it is powered on. Each Jetdirect has a unique self-signed certificate. For s

Strona 23

3 see that SSL/TLS requires application changes in order to be utilized. These changes have to be made by every application that wishes to utilize SS

Strona 24

30 We see the RSA public key is 1024 bits for the self-signed certificate and that the certificate can be used for client and server authentication

Strona 25

31 Under the heading “Jetdirect Certificate”, press “Configure…”

Strona 26

32 Select the radio button “Create Certificate Request”. This will tell Jetdirect to create a public/private key pair and along with some more inform

Strona 27

33 Here is the certificate request. We are going to want to store it. We can cut/paste it or click “Save”. Click “Save As”

Strona 28

34 Store it in a directory on the client. Now we are going to bring up R2’s CA web server.

Strona 29

35 Enter the credentials that will allow a certificate to be issued. And here is the R2’s CA web server. Let’s click the link “Request a Certific

Strona 30

36 Click “advanced certificate request” Select the second link “Submit a certificate request….”

Strona 31

37 We cut and paste the certificate request from Jetdirect into the box provided. We select a certificate template. This template is basically a “coo

Strona 32

38 Save it. Bring up the certificate wizard on Jetdirect again by pressing “Configure…”

Strona 33

39 Now we select “Install Certificate” and click “Next” Point it to the file obtained from the R2 CA. Click “Finish”

Strona 34

4 Figure 4 - HTTP Session The URL starts with http:// and tells the browser that SSL/TLS is not required. Let’s change it to https:// and hit the

Strona 35

40 Cool – it worked. Click “OK” Now – let’s view the contents of this certificate. We can see that the issuer is R2. We also see the Subject CN.

Strona 36

41 We see we have some CRL distribution points in the certificate as well – remember that. Also see that we can do Web Server and Web Client authenti

Strona 37

42 Click “Download a CA certificate, certificate chain, or CRL”. Select “Download CA Certificate Chain”. This file will have both R2 and RootCA’s

Strona 38

43 Save it. Go to “Tools” and click “Internet Options”.

Strona 39

44 Click “Certificates”

Strona 40

45 Click “Import…” Click “Next”

Strona 41

46 Select the file Click “Next”

Strona 42

47 Select “Automatically select the certificate store….” Click “Next” Click “Finish”

Strona 43

48 Press “Yes”. Note the Security Warning message. Installing a CA public key certificate as a trusted Root CA is a big deal. You need to be very s

Strona 44 - Click “Certificates”

49 Select the tab “Intermediate Certification Authorities” and we can see that R2’s public key certificate has been installed. Yea! Click the tab “

Strona 45

5 Figure 6 - More Info Notice the sentence: “This Web site provides secure communication and has a valid certificate.” After reading this whitepap

Strona 46

50 Now we go back to the web page and still get an error!! No!! The problem is that we have a name mismatch. We are using the IP address in the URL

Strona 47

51 We ping it just to be sure. Looks good. We go back to the web browser and enter the name instead of the IP address.

Strona 48

52 Everything worked! Now SSL/TLS is working for HP Jetdirect just like it would work for an Internet secure shopping experience. A Detailed Lo

Strona 49

53 We see the TCP connection is established to “https” or TCP port 443. The client is 192.168.0.25 and the web server is 192.168.0.20. We see the S

Strona 50

54 Now let’s look at the server hello. Here we see a random number and the cipher suite selected to be used: TLS RSA WITH RC4 128 MD5 We see the se

Strona 51

55 Here the client is sending over the pre_master_secret encrypted with the server’s public key. It is also letting the server know it is changing key

Strona 52

56 Now we have actual client data – this is probably the initial HTTP request encapsulated in SSL/TLS. There was one check that wasn’t done – the C

Strona 53

57 Check for server certificate revocation is not selected.

Strona 54

58 Let’s select it and restart IE7. Here is another HTTPS connection to the same LJ4345MFP. Everything looks the same so far

Strona 55

59 Here we go – looks like before any application data is sent, the CRL is check using http. This one is going to the RootCA Another CRL request to

Strona 56

6 Well, we’ve got one green checkmark and two yellow warnings. Good enough for us! Let’s click “Yes” and establish the HTTPS session with the MFP.

Strona 57

60 Here is the content of the CRL – encrypted of course. A performance hit would occur when CRLs are checked. That is probably why it isn’t chec

Strona 58

61 The setting “Encryption Strength” controls the cipher suites that Jetdirect will select from a client request. The default setting is “Low” which

Strona 59

62 We are going to select Simple over SSL as the LDAP server bind method and use the IP address of 192.168.0.1, which is our LDAP server. We then scr

Strona 60 - SSL/TLS Server Settings

63 Error message – it didn’t work. Let’s look at a trace. Here we see Jetdirect taking on the role of the client. It initiates the connection and

Strona 61

64 The server responds. There is a new message here – one we haven’t talked about. The Certificate Request. The server is indicating to Jetdirect t

Strona 62

65 Because we have already stored the CA certificates in our browser’s certificate store, we’ll just export one and put it on Jetdirect. Let’s take a

Strona 63

66 Select R2 and hit “Export…” Click Next

Strona 64

67 Select DER. Click Next. Save it.

Strona 65

68 Save it. Click “Finish”

Strona 66

69 Under the heading “CA Certificate”, click “Configure” Select Install and click “Next”

Strona 67

7 Figure 9 - Lock Icon The mouse pointer was placed on the lock icon. Notice the “SSL Secured (128 bit)” shown in the bottom right. If we double-c

Strona 68

70 Select the file. Click Finish Click OK.

Strona 69

71 The status for the CA Certificate is now “Installed” We try again and it still fails!

Strona 70

72 Same message. What did we do wrong?

Strona 71

73 We need the ROOT CA. Jetdirect cannot use Intermediate CAs. Back to the certificate store and now let’s export RootCA’s public key certificate.

Strona 72

74 Try again. Another failure! Let’s check the trace. Here we get a “Certificate Unknown” message. Well, it could be we are using the IP address

Strona 73

75 We use the DNS name and try again. Success!!

Strona 74

76 Now that we are successful, we see the server’s certificate has a SubjectAltName with a dnsName identifier. Remember that the server wanted Jet

Strona 75

77 SSL/TLS Client: Understanding Certificate Chains In the previous section, we described a situation where the wrong CA certificate was configured

Strona 76

78 Figure 32 - Notice that R2’s certificate is issued by RootCA. What does RootCA’s certificate look like? Let’s look at Figure 33.

Strona 77

79 Figure 33 - RootCA Notice the RootCA is “self-signed”. All Root CAs will be self-signed – these CAs represent the single point of trust. A lo

Strona 78

8 Figure 10 - Certificate Details Something is very wrong here. We went from yellow warning symbols and green checkmark to a big red X symbol. We

Strona 79

80 Root Certificate Authority: RootCASubordinate Certificate Authority: R2RootCA.example.internalR2.example.internalRootCA’s Certificate RootCA’s Publ

Strona 80 - R2.example.internal

81 Root Certificate Authority: RootCASubordinate Certificate Authority: R2RootCA.example.internalR2.example.internalRootCA’s Certificate RootCA’s Publ

Strona 81 - CORRECT!

82 Figure 36 - Walking the Chain 1 Jetdirect has one certificate stored on it – the RootCA public key certificate. During the SSL/TLS handshake wit

Strona 82

83 Jetdirect verifies that R2 has signed the server’s certificate. It also verifies R2’s certificate (e.g., it has not expired and so on) and makes s

Strona 83

84 Figure 38 - Subject We can se there are several things in the Subject – but the most critical is the Common Name. Here we can see why the brows

Strona 84

85 Figure 39 - SubjectAltName Notice how there isn’t even a Common Name in the LDAP server’s certificate. If you remember, we tried connecting to

Strona 85

86 Effectively, the algorithm is going to be something like this: If( dNSName is present) { Match dNS Name } Else { Match Common Name } For HTTPS

Strona 86

87 Figure 40 - OU Here the Common Name is the FQDN of Jetdirect but there is additional information provided in the Organizational Units (OU). Th

Strona 87

88 (“https://msimpson.example.com” or “https://bsimpson.example.com”), they get a Certificate Error indicating a name mismatch. Why? If we refer bac

Strona 88

89 IPP over SSL/TLS SSL/TLS can also be used to protect printing. HP Jetdirect supports IPP over TLS (henceforth, IPPS), but does not support any cl

Strona 89 - IPP over SSL/TLS

9 Digital Certificates Much like a fake ATM machine, an unethical hacker could use technology to direct a user to a false web site when they are thin

Strona 90

90 Click “Next” Select “A network printer…”

Strona 91

91 Specify a URL of HTTPS and be sure to end it with a “/ipp” so Jetdirect knows what it is for. Select the appropriate driver.

Strona 92

92 Click “Finish” Now we have a printer. Right Click and select properties.

Strona 93

93 Print a test page. Yep – we have our print data protected by SSL/TLS.

Strona 94

94 That wasn’t too bad to get security for your print data. However, there is a problem. Notice that we used the IP address in the URL. After the b

Strona 95 - Summary

95 physical user interface) and is probably stored right next to the digital certificate. In short, an analysis of the non-volatile storage of your e

Komentarze do niniejszej Instrukcji

Brak uwag