Home
WTLS document, PDF version
Contents
1. Digital certificates A digital certificate is a short electronic document that vouches for the authenticity of its holder It is issued by an organisation called a certificate authority CA and is formatted in such a way that it is practically impossible to counterfeit Digital signatures A digital signature is a way of formatting a message so that it is traceable to one source and one source only Digital signatures enable non repudiation in Internet transactions The methods used by SSL are generic mathematical and procedural ones which can be applied to any secure means of communication As we shall see in Section 3 they have already been adopted by the Mobile Internet s Wireless Transport Layer Security WTLS protocol see Section 3 and they are likely to form the basis of any future developments in Internet security Sections 2 4 to 2 8 examine the elements of Internet security as they are implemented in SSL 2 4 Privacy The fundamental requirement of any method of secure communication is privacy In inherently transparent media such as the Internet this means finding ways of ensuring that even if a third party can see a message they cannot understand it The best way to achieve this is to scramble the message in a way that is systematic whilst being all but impossible to deduce from the scrambled message alone 2 4 1 Symmetric Key Cryptography SSL uses techniques of cryptography to scramble and unscramble data Cryptograp
2. 2 Abigail sends her credit card details to the gateway using the WAP stack They are encrypted with the session key agreed between her and the WAP gateway 3 The WAP gateway decrypts Abigail s credit card details using the session key agreed between it and Abigail Y 4 The WAP gateway sends Abigail s credit card details to Brian using HTTP 5 Brian receives Abigail s credit card details and processes the transaction The gateway and Abigail discard their mutual i 1 i i i i i i L session key and close their WTLS session i i i 1 Figure 10 WTLS transaction with the WAP gateway hosted by the content provider 19 Chapter 4 4 Using Alligata Secure with OpenSSL NOTE THIS SECTION IS INCOMPLETE AND IN PLACES INACCURATE IT MAY HOWEVER BE USABLE AS THE BASIS FOR THE DOCUMENTATION FOR THE SECURE VERSION OF KANNEL WHEN THE LATTER IS RELEASED Alligata Secure is supplied with the OpenSSL open source software toolkit OpenSSL includes a library of general purpose security functions that you can use in conjunction with Alligata Secure to implement secure Mobile Internet services OpenSSL enables you to create symmetric or asymmetric keys create digital certificates encrypt messages calculate message digests Of OpenSSL s features creation of symmetric keys message encryption and digest calculation are incorporated into the Alligata Secure software You can
3. However symmetric key cryptography has an important limitation before any encrypted communication can take place the encryption key itself must be securely conveyed from the sender to the recipient Symmetric key cryptography only allows this to be done by extraneous Chapter 2 2 Internet Security Overview means For example the sender could send the key in an armoured van to the recipient this is how banks install keys in their cash machines Of course this undermines the main advantage of the Internet over other forms of communication namely its practicality To circumvent this limitation of symmetric key cryptography another type of cryptography called public key cryptography also known as asymmetric key cryptography is employed for the exchange of symmetric keys Public key cryptography exploits the existence of a type of mathematical operation called a one way function A one way function is one that is much easier to perform in one direction than in the other A simple example of a one way function is the multiplication of prime numbers for instance it is much easier to multiply 4253 by 5521 than it is to find the two prime factors of 23480813 The multiplication of prime numbers plays a significant role in many cryptographic algorithms Public key cryptography uses advanced one way functions consisting of a mathematical algorithm and a numerical key to encrypt data Unlike in symmetric key cryptography however the key used
4. TA Figure 4 SSL handshake Step numbers correspond to those in the textual account Part Two Transfer of Confidential Information 12 Abigail fills in the relevant form on Brian s Web site including her credit card details She presses a button which sends the form to Brian encrypted using the session key 10 Chapter 2 2 Internet Security Overview 13 Brian receives Abigail s credit card details and decrypts them using the session key Abigail client bebe Brian server c Internet Session LI LI D LI LI I LI 12 Abigail makes her purchase encrypting 13 Brian decrypts Abigail s credit card her credit card details using the session key details using the session key LI LI LI LI LI LI LI LI LI LI 1 Figure 5 Transfer of confidential information using SSL Step numbers correspond to those in the textual account Part Three Secure Session Closure 14 Abigail and Brian both discard their session keys 15 Brian closes the secure session Finally Brian sends Abigail her item and her credit card company the bill Il Chapter 2 2 Internet Security Overview Abigail client Brian server nV AND Internet Session Session 14 Abigail and Brian both discard their session keys End of secure session 4 C 15 Brian formally closes the secure session Figure 6 SSL session closure Step
5. customise them by changing the configuration variables described in Section 4 X Before you do anything else however you must create an asymmetric key pair 4 1 Creating an Asymmetric Key Pair An asymmetric key pair is required for WTLS connections between a WAP gateway and client devices see Section 3 Alligata Secure supports keys generated by the RSA algorithm The following instructions show you how to create an RSA key pair using OpenSSL Many additional options are also available see the OpenSSL man pages in particular openssl and genrsa for details To create an asymmetric key pair 1 Create three or four files containing random data You can do this by using the command echo random string gt file name for each file For example echo st509tjjm 4t sa 8EHjhjOSFOhoij gt randl txt These files will be used together with the random data file HOME rnd to generate the key pair 2 Type openssl genrsa rand random data files out output file storage encryption algorithm passout password source 20 Chapter 4 4 Using Alligata Secure with OpenSSL Notes random data file the file names should be separated by colons output file the name of the file to which the public and private keys will be output Conventionally the file name should have a pem extension storage encryption algorithm the symmetric algorithm used to encrypt the key file Possible values are des des3 and idea This parame
6. digital certificate including his public key The certificate is signed by a trusted CA using its private key Information about what versions of SSL Brian s Web server supports what encryption algorithms it supports and so on Some randomly generated data which will be used in the generation of the session key Brian could also request Abigail s digital certificate However in practice it is very rare for a server to require a certificate from a client 4 Abigail validates Brian s certificate as outlined in Section 2 6 1 If the validation is successful she is happy that Brian is who he says he is and that he is a reputable trader 5 Abigail performs a series of operations on the random data she sent to Brian and the random data Brian sent to her to produce a piece of data called the premaster secret 6 Abigail encrypts the premaster secret using Brian s public key and sends it to Brian If Brian had requested her digital certificate she would also send her certificate for Brian to validate 7 Brian receives the premaster secret from Abigail 8 Brian decrypts the premaster secret He and Abigail simultaneously perform a series of operations on it to arrive at a piece of data called the master secret 9 Abigail and Brian simultaneously perform a series of operations on the master secret to arrive at the session key see Section 2 4 3 which will be used to encrypt the information they want to send to each oth
7. numbers correspond to those in the textual account 12 Chapter 3 3 Mobile Internet Security 3 1 Wireless Transport Layer Security WTLS Mobile Internet security uses the same methods of encryption hashing digital certificates and digital signatures that SSL provides for the terrestrial Internet However instead of SSL the Mobile Internet is served by a streamlined protocol called Wireless Transport Layer Security WTLS WTLS is an optional component of the Mobile Internet s Wireless Application Protocol WAP stack It resides between the Wireless Datagram Protocol WDP and the Wireless Transaction Protocol WTP layers of the WAP stack The structure of the WAP stack is shown in Figure 7 The Internet Wireless Application Environment WAE Wireless Application Environment WAE r Wireless Session Protocol WSP Wireless Transaction Protocol WTP Wireless Transaction Protocol WTP Wireless Transport Layer Security WTLS WAP client c WAP gateway device Bearer Service Figure 7 The WAP stack Like any Mobile Internet transaction a secure Mobile Internet transaction extends across both the mobile telephone network and the Internet using WAP for the wireless part of the journey the Hypertext Transfer Protocol HTTP suite for the Internet part and a WAP gateway in the middle to translate between the two Figure 8 shows an overview of Mobile Internet communication from the mobile d
8. session key see steps 5 onward 4 The gateway receives Abigail s request for a secure session and sends her the following items Its digital certificate including its public key The certificate is signed by a trusted CA using its private key Information about what versions of WTLS encryption algorithms and so on are supported by the WAP gateway Some randomly generated data which will be used in the generation of the session key In WTLS class 3 see Section 3 1 1 the gateway would also request Abigail s digital certificate at this point Alternatively it could obtain Abigail s certificate from an external source on the Internet a procedure which characterises the optimised WTLS handshake 5 Abigail validates the gateway s certificate as outlined in Section 2 6 1 If the validation is successful she is happy that the gateway s proprietor is genuine and trustworthy 6 Abigail performs a series of operations on the random data she sent to the gateway and the random data the gateway sent to her to produce the premaster secret 7 Abigail encrypts the premaster secret using the gateway s public key and sends it to the gateway In WTLS class 3 she would also send her digital certificate for the gateway to validate 8 The gateway receives the premaster secret from Abigail 15 Chapter 3 3 Mobile Internet Security 9 The gateway decrypts the premaster secret The gateway and Abigail simultaneously perform a ser
9. to encrypt a message cannot be used to decrypt it Decrypting the message requires a different key that is mathematically related to the encryption key but for all practical purposes impossible to derive from it Even knowing the encryption algorithm is no help in calculating the encryption key for which reason the best known encryption algorithms are kept in the public domain The thinking is that submitting encryption algorithms to the scrutiny of the world s cryptanalysts is the best way of testing their robustness For example the RSA algorithm used by Alligata Secure has so far yielded no significant weaknesses Note that deriving a decryption key from an encryption key is always hypothetically possible in fact mathematically it is many times quicker to work out a private asymmetric key than it is to work out a symmetric key of the same length Still calculating a private assymetric key of 1792 bits should for the next few years at least be all but computationally infeasible even using hundreds of thousands of computers working in parallel Certainly for almost every organisation in the world it will be financially infeasible 2 4 3 Cryptography in Practice Let us suppose Brian wants to set up a secure Internet connection He first uses an appropriate software tool to create an asymmetric key pair consisting of one public and one private key Others can then use his public key to encrypt messages to him which he and no one els
10. Guide to Mobile Internet Security Guide to Mobile Internet Security Table of Contents 1 1 Introduction 2 2 Internet Security Overview sccccccsccscssssssssssscssccsseesescssssssssssssssesseesecsscesessssssesssessesseessessesssseees 2 ZA Aspects of Internet Securty esrar pte ihre enit tee dp ide e ederet 2 2 2 Insecurity of the Internet eicere rre tet oe pe er e nein 2 2 3 Secure Sockets Layer SSIS nr eeri e Io rere re rre Bb dente Peu me RE e eredi de uev s de 2 DA Privacy ose SEHR ERES Ne 3 2 4 Symmetnce Key Cryptography 5 cene eie Hcet edes 3 2 4 2 Public Key Cryptography isses sienien eree reren enne nennen treni nennen nennen 4 2 43 Cryptography an Practice etae e Eee UR e Seta 5 2 5 Integrity Prove ctn eee eter ted ee i tee ette 5 23 3 T Hash E nctions s Ite et tede ete pe t deret et eode e 6 2 6 Authentication step t Ere Rmi epe emos 6 2 60 1 Digital Certificates 5e eee as eer estem E Ue heme iere dise te cap 6 2C T Non rep diatioh a ett ete Debet iU RIEN Miet ie Que eei ertet reus 7 2 7 1 Digital Signatures eese etiem eee quaii ete ee dines 8 2 8 Example Secure Tra sact on air sono osie aia eoa T OA E SEEE AE E E O 8 Part One SSE Handshake nette ee pedi he rtp Re S 8 Part Two Transfer of Confidential Information eese 9 Part Three Secure Session Closure esses eene nennen 10 3 3 Mobile Internet Sec rity e eeee tree erect etienn
11. antee of integrity a collision is theoretically possible whereby the modified message happens to produce exactly the same hash value as the original message However collisions in good quality hash functions are so rare that their calculation may be considered computationally intractable 2 6 Authentication SSL allows privacy and integrity in Internet communications However without further measures the anonymity of the Internet makes it easy for a user to impersonate another user For example a malicious party could create a Web site on which they masquerade as a respected organisation set up a private connection for transactions and begin obtaining money and credit card details from unsuspecting customers Chapter 2 2 Internet Security Overview 1 1 1 Plaintext Block Block 2 Block 3 1 Final block 1 1 gt gt o 2 i E i 1 s 3 I 1 1 1 Digest 2nd iteration 3rd iteration 1 1 1 1 Figure 3 Creation of a message digest using a hash function 2 6 1 Digital Certificates This problem is addressed by the use of digital certificates A digital certificate is a message sent by one party to another at the beginning of a secure Internet session verifying the sender s identity and vouching for their integrity The certificate is obtained from an organisation called a certificate authority CA The certificate is virtually impossible to forge for reasons that are explained l
12. ater Once a secure session has been requested by an Internet client such as a Web browser it typically continues with the server sending the client its digital certificate The server s digital certificate contains the following information The server s public key The certificate s serial number The certificate s validity period The server s domain name The domain name of the CA that issued the certificate The certificate is supplied with its hashed digest see Section 2 5 1 The digest is encrypted using the private key of the CA that issued the certificate this encrypted digest constitutes the CA s digital signature If the digital signature can be decrypted using the CA s public key then the certificate must have originated with the CA See Section 2 7 for more on digital signatures Upon receiving the server s certificate the client validates it by checking the following criteria That it is valid for the current date That it applies to the server that sent it That the CA that issued it 1s known and trusted To do this the client checks the CA s own certificate which is signed by the CA itself That the CA s digital signature can be decrypted using the CA s public key Most Web clients contain a list of the public keys of the best known CAs so they do not need to search the Internet for them The client warns the user if the certificate fails any of these tests The user may continue with th
13. devices WTLS certificates also omit some of X 509 s non essential fields such as alternative subject names and key usage options A WTLS certificate includes the following information The subject s name e The issuing CA s name The certificate s validity period The asymmetric and symmetric algorithms used for key exchange The subject s public key The digital signature of the issuing CA 3 1 4 Certificate Revocation in WTLS On the terrestrial Internet a CA can revoke a certificate it has issued before the end of the certificate s validity period if the security of the owner s private key has been compromised or if there is new reason to doubt the owner s identity or integrity Certificate revocation on the terrestrial Internet is implemented by means of certificate revocation lists issued by CAs When an Internet client receives a certificate from a secure server it retrieves the signing CA s certificate revocation list from the Internet checks that the certificate does not appear it and if not accepts the certificate 17 Chapter 3 3 Mobile Internet Security On the Mobile Internet it is impracticable for a small client device to check a revocation list every time it downloads a gateway s certificate The problem of revocation is therefore addressed by the use of short lived certificates The CA instead of issuing the secure WAP gateway with a single certificate valid for a long period sends it a fresh certifica
14. e can read using his private key In this way anyone can send Brian a private message without going through the risk or inconvenience of exchanging symmetric keys beforehand Conversely if Brian wants to send a message that others can be sure originated with him he encrypts it using his private key and others use his public key to read it This is the process of creating a digital signature and is elaborated in Section 2 7 In practice the complex mathematical processes used by public key cryptography make it rather slow for use with long messages SSL therefore restricts its use of public key cryptography to the exchange of a symmetric key see Section 2 3 1 between the client and the server at the start of a secure Internet session This symmetric key is agreed on the fly between the client and the server and it is called the session key After the session is over it is discarded by both the client and the server The ways in which symmetric and asymmetric cryptography are combined in real Internet transactions are illustrated in Section 2 8 Chapter 2 2 Internet Security Overview 2 5 Integrity Protection We have seen how cryptography can be used to send messages across the Internet that are unreadable by third parties However this does not prevent third parties from blindly altering messages between their source and their destination Depending on the content of the message such alterations may be apparent to the recipient of t
15. e elo rh tna sve tup ve tir eb reU ossi era bee P o e EUN eaa eU UR oen bed sios 11 3 1 Wireless Transport Layer Security WTLS essere enne 11 3 1 1 WTLS Implementation Classes esee eene nennen rene 12 3 2 WTLS Handshake ret et ERROR D dE 12 3 1 3 Digital Certificate Formats eese enne Se Eberi nennen rennen 13 3 1 4 Certificate Revocation in WTLS sssessesesesseeseeeeneeneen eene nennen nennen enne 14 3 2 WTLES mr Alligat Secure ete tees diee ie e Aa SSPE NEED sesh VOKTO EiS 15 3 2 1 Supported WTLS Implementation Classes esses 15 3 2 2 Supported Digital Certificate Formats eese 15 3 2 3 Supported Encryption Algorithms eeeeesseeeeeeeeeen ener nennen ene 15 3 3 End to End Mobile Internet Security essere ener 15 4 4 Using Alligata Secure with OpenSSL eere eee eres eese eese eee en seiten stas ta sets tn stas to sse ss enata 17 4 1 Creating an Asymmetric Key Pair sese nen eene 17 iii Chapter 1 1 Introduction Welcome to the Alligata Server Guide to Mobile Internet Security This guide is part of the Alligata Server Secure package It supplements the Alligata Server User Manual and explains how you can use Alligata Server Secure s encryption features to set up secure Wireless Application Protocol WAP services such as credit card transactions and exc
16. e session at their own risk if they wish Chapter 2 2 Internet Security Overview Digital certificates can be issued in chains For example a large CA might issue a certificate to a smaller CA which issues a certificate to a still smaller CA which issues end entity certificates to Internet traders This helps distribute the task of administering digital certificates When an Internet client receives a certificate from a chain it checks the certificate of every CA in the chain as described above until it reaches the self signed certificate of a top level CA Digital certificates are not only used by Internet servers they can also be obtained for Internet clients In practice though demand for client certificates has proved minimal Authentication of a client by a server where it is implemented at all is usually through use of a user name and a password While this method is not infallible it nevertheless adds a layer of security to Internet transactions that is absent from many non Internet confidential transactions for example ordering goods by credit card over the telephone 2 Non repudiation The final requirement of secure communications is non repudiation a message s source must be provable upon demand Non repudiation is normally achieved using digital signatures 2 7 1 Digital Signatures A digital signature is simply a way of encoding data so that its source and its integrity are verifiable Digital signatures use the
17. een practicality and guaranteed security 2 8 Example Secure Transaction Secure Internet transactions rely on quite complex combinations of public key cryptography symmetric key cryptography hash functions digital certificates and digital signatures The following example Chapter 2 2 Internet Security Overview illustrates the sequence of steps involved in a typical SSL session Note that by far the most complex part of a secure Internet session is the initial handshake whereby the parties agree on a secure data format for the rest of the session and if necessary establish each other s credentials This example demonstrates the most usual type of SSL handshake with the client authenticating the server but without the server authenticating the client The transaction is summarised graphically in Figures 4 5 and 6 Part One SSL Handshake 1 Abigail a Web surfer sees an item she would like to buy on Brian s Web site 2 Abigail clicks a button on Brian s Web site that sends a request for a secure Internet session to Brian The following items are appended to the request Various information about what versions of SSL Abigail s Web browser supports what encryption algorithms it supports and so on Some randomly generated data This will be used along with other data to generate the session key see step X 3 Brian receives Abigail s request for a secure session and sends her the following items His
18. ency and variable quality of radio transmission Optimised handshakes WTLS allows the WAP gateway acting as a server to the mobile WAP client to authenticate the client by obtaining the client s digital certificate from an external source rather than the client itself This reduces the processing and memory burden on the client Dynamic key refreshing Communication via radio signals is particularly vulnerable to tapping by third parties As an extra security measure against eavesdropping WTLS allows for the symmetric session key to be changed regularly over the course of the session without the need for a clean handshake Fast encryption and hashing algorithms WTLS uses the quickest most efficient algorithms available for hashing and encryption see Section 2 so that client processing time and power consumption are kept within reasonable limits Client gateway rather than client server coverage Unlike SSL WTLS does not span the whole of the communication channel from the client to the content provider s HTTP server but only communication over the mobile telephone network between the client and the WAP gateway If security is also required between the gateway and the HTTP server it must be implemented using SSL The complete WTLS specification can be found on the WAP Forum s Web site at www wapforum org 3 1 1 WTLS Implementation Classes The WTLS specification allows for three classes levels of WTLS implementation 14 C
19. er Chapter 2 2 Internet Security Overview 10 Abigail sends Brian two messages The first confirms that all further messages from her will be encrypted using the session key The second is an encrypted message that formally ends the handshake from her side 11 Brian sends Abigail two messages The first confirms that all further messages from him will be encrypted using the session key The second is an encrypted message that formally ends the handshake from his side Abigail client L Brian server 1 1 M gt 2 Abigail requests a secure Internet connection from Brian I Abigail sees an item she would like to buy on Brian s Web site 3 Brian sends Abigail his digital certificate which includes his public key and 4 Abigail validates Brian s certificate and decrypts the CA s digital signature using the CA s public key It works so Brian is genuine which is signed by the CA I LI y LI J 4 e using the CA s private key 1 He also sends her other J information she will need Bri in order to continue with Ten I the session LI L LI I LI U 1 7 Brian decrypts the premaster secret LI L 5 amp 6 Abigail sends Brian the premaster secret encrypted gt gt using Brian s public key I Y LI i 10111010100 m LI I LI J 8 Abigail and Brian separately calculate the master sie 1 16616111601 1 10010111001 1 y
20. evice at one end to the HTTP server at the other If security is required across the whole communication channel SSL can be used between the WAP gateway and the HTTP server Alternatively the content provider can host the gateway themselves As will be seen later this arrangement provides optimum security 13 Chapter 3 3 Mobile Internet Security WAP phone Base station A WAP The Internet Vib ninar Wirel ae bs F ireless zz cRMBE a EB e Communication via WAP Protocol Stack Communication via HTTP Figure 8 WAP communication overview Like WAP as a whole WTLS uses the Internet as a model for its procedures and is very similar in outline to SSL However it has a number of additional characteristics Compact coding WTLS employs more compact coding than SSL in order to keep messages as short as possible and to minimise the time and processing power required by the client device to interpret and transmit them These measures help to offset the speed limitations imposed by the high latency and low bandwidth of wireless networks They also compensate for the low power and computational resources of mobile devices Datagram support WTLS operates directly above WAP s Wireless Datagram Protocol WDP and therefore needs to accommodate the unreliability and unpredictability of connectionless datagram communication Rigorous confirmation and retransmission procedures are rendered doubly important by the intermitt
21. hange of private information across the Mobile Internet or a mobile intranet This guide covers the following subjects How security is implemented on the Internet using cryptography message hashing digital certificates and digital signatures How the Wireless Transport Layer Security WTLS component of the WAP stack extends security to the Mobile Internet How to obtain the data items items you need to set up secure Mobile Internet services asymmetric key pairs and digital certificates How to configure Alligata Server Secure to offer secure WAP services Chapter 2 2 Internet Security Overview For an understanding of security on the Mobile Internet some knowledge is required of how security works on the terrestrial Internet This section explains the ways in which confidential information sent across the Internet can be protected against interception alteration and forgery by third parties 2 1 Aspects of Internet Security To be considered entirely secure any method of communication must offer the following features Privacy A message must not be readable by third parties between its source and its destination Integrity protection A message must reach its destination in the same form as it left its source or else the fact that it has been altered in transit must be obvious to its recipient Authentication Means must exist for the recipient of a message to verify that its sender is trustworthy and genuine t
22. hapter 3 3 Mobile Internet Security Class 1 Anonymous encryption Data is encrypted but certificates are not exchanged between the client and the gateway Class 2 Encryption with server authentication Data is encrypted and the client requires a digital certificate from the server Class 3 Encryption with client and server authentication Data is encrypted and the client and the server exchange digital certificates 3 1 2 WTLS Handshake The WTLS handshake is very similar to the SSL handshake The following example illustrates the most common form of the WTLS handshake that for WTLS class 2 see Section 3 1 1 This involves the client authenticating the gateway but not vice versa It is illustrated in Figure 9 This example shows the full handshake WTLS also uses an abbreviated handshake for resumption of a previously established session This involves re exchanging a session identification code agreed when the session was first established 1 Bollocks 2 Abigail a WAP phone user user sees an item she would like to buy on a WAP site 3 Abigail activates a link on her WAP phone that sends a request for a secure Internet session to the WAP gateway The following information is appended to the request Various information about what versions of WTLS Abigail s WAP browser supports what encryption algorithms it supports and so on Some randomly generated data This will be used along with other data to generate the
23. hat is not impersonating a third party Non repudiation The sender of a message must not be able to deny at a later time having sent it All these features are available on the Internet through the use of encryption hashing digital certificates digital signatures and password protection These techniques are discussed in detail later in this section Firstly it is important to know why they are necessary to begin with 2 2 Insecurity of the Internet The Internet is not an inherently secure medium A message sent across the Internet from one computer to another typically travels via several intermediate computers called routers Anyone with access to a router can inspect or modify data packets as they pass through it Furthermore before and after its journey across the Internet data will often pass through a local area network LAN The architecture of most LANs is such that data packets from and to one computer on the network can freely be read by any other computer on it All this means that a message transmitted across the Internet can potentially be seen and even altered by hundreds of people some known to the sender others unknown on its way to its destination 2 3 Secure Sockets Layer SSL A solution to the problem of secure Internet communication was first developed by the software company Netscape in 1994 Netscape added a protocol layer the Secure Sockets Layer SSL on top of the Internet s TCP IP protocol suite i
24. he gateway the premaster secret encrypted using the gateway s public key 10111010100 a 11616061611 1 11010001011 1X 9 Abigail and the gateway separately calculate the session key P T Session B Session 10 Abigail formally ends the handshake from her side Handshake VI The gateway formally ends the handshake from les side complete i Figure 9 WTLS handshake 16 Chapter 3 3 Mobile Internet Security 3 1 3 Digital Certificate Formats W TLS specifies two possible formats for digital certificates X 509 This is the standard format for digital certificates in SSL and is optional in implementations of WTLS However it is not supported by the current generation of WAP client devices The principal information contained in an X 509 certificate is The subject s name The issuing CA s name The certificate s validity period e The asymmetric and symmetric algorithms used for key exchange The subject s public key The digital signature of the issuing CA Alternative names for the subject optional e Allowed key usage for example whether the subject s public key may be used for encryption server authentication signing other certificates and so on optional WTLS WTLS certificates are similar to X 509 certificates but more compactly coded so as to suit the high latencies and low bandwidth of wireless networks and the limited processing reources of WAP client
25. he message or not For example indiscriminate interference with a text message is usually easier to spot than with a block of binary data Integrity protection is the term applied to techniques for verifying that a message reaches its intended recipient in exactly the same form as it leaves its sender While integrity protection does not guarantee that a message will reach its desination unchanged it does virtually guarantee that any change is obvious to the recipient 2 5 1 Hash Functions Integrity protection uses computational algorithms called hash functions A hash function is a one way function see Section 2 3 2 into which data such as an Internet message is fed and whose result is a value of a fixed length in bits Passing a message through a hash function produces a hash value that is effectively a fingerprint of the message This fingerprint is called the message digest It is usually much shorter than the message itself The sender of a message computes its digest encrypts the digest using their private key and sends it appended to the message The recipient verifies the integrity of the message by decrypting the digest using the sender s public key then running the message through the same hashing algorithm that produced the digest If the message has been interfered with on its journey the hash value calculated by the recipient will not match the value of the digest In fact a matching hash value is not an absolute guar
26. hy is the art of rendering information opaque by passing it through mathematical scrambling algorithms The scrambling of information using cryptography is called encryption its unscrambling is called decryption Chapter 2 2 Internet Security Overview In encryption message data is passed through a mathematical algorithm involving a particular numeric value This numeric value is called the key In basic cryptography a message can only easily be decrypted by someone with access to the key with which it was encrypted Other important cryptographic terms are Plaintext unencrypted data Despite its name the term usually refers to any kind of unencrypted data whether textual graphical audio or binary Ciphertext data that has been encrypted Cryptanalysis the study of methods to break ciphertext that is deduce its original plaintext form without direct access to its encryption key encryption algorithm or both An example of a very simple cryptographic algorithm is to add a value x the key to the code of each character in a message To decrypt an encrypted message its recipient must know both its encryption algorithm and the algorithm s key They can then use the key to perform the inverse of the encryption operation on each character of the message For example if a message were encrypted by adding 6 to the code of each character in it it would be decrypted by subtracting 6 from each code Because the decryption ope
27. ies of operations on it to arrive at the master secret 10 Abigail and the gateway simultaneously perform a series of operations on the master secret to arrive at the session key see Section 2 4 3 which will be used to encrypt the information they want to send to each other 11 Abigail sends the gateway two messages The first confirms that all further messages from her will be encrypted using the session key The second is an encrypted message that formally ends the handshake from her side 12 The gateway sends Abigail two messages The first confirms that all further messages from it will be encrypted using the session key The second is an encrypted message that formally ends the handshake from the gateway s side Abigail client WAP gateway 2 Mobile phone network ran _ s 1 2 Abigail requests a secure wireless connection from the WAP gateway Abigail sees an item she would like to buy on a WAP site 3 The gateway sends Abigail its digital certificate which includes its public key and which is signed by the CA using the CA s private key The gateway also sends her other information she will need in order to continue with che session 4 Abigail validates the gateway s certificate and decrypts the CA s digital signature using the CA s public key It works so the gateway can be trusted 7 The gateway decrypts the premaster 5 amp 6 Abigail sends t
28. n its Navigator Web browser SSL employs a collection of mathematical and computational techniques to allow data to be sent securely across the Internet in ways that meet all the criteria of privacy integrity protection authentication and non repudiation By 1998 SSL was firmly integrated into the infrastructure of the Internet as a whole and was the main catalyst behind the e commerce boom of the late 1990s As Figure 1 shows it can be used in conjunction with Chapter 2 2 Internet Security Overview any of the higher level Internet protocols such as HTTP File Transfer Protocol FTP and Internet Message Access Protocol IMAP Application layer Internet Message Access Protocol IMAP protocols examples J Hypertext Transfer File Transfer Protocol HTTP Protocol FTP Secure Sockets Layer SSL Transmission Control Protocol TCP Network layer 1 protocols Internet Protocol IP J Figure 1 SSL s position among the Internet s protocols SSL uses the following methods to provide security across the Internet Cryptography This is the science of scrambling messages so that they cannot easily be understood by anyone other than their sender and their intended recipient It enables privacy in Internet communications Message hashing A message is run through a computational algorithm to produce a message fingerprint which can be used to verify that the message has not been altered in transit
29. ration is the exact inverse of the encryption operation this type of cryptography is called symmetric key cryptography The algorithms that are actually used in symmetric key cryptography on the Internet are much more complex than this example in order to be able to withstand attempts to crack them by trial and error known as brute force attacks Most symmetric agorithms encrypt messages not a character at a time but a block of bits at a time typically 64 a method called block cipher encryption In block cipher encryption a complicated series of transformations is applied to each block in turn using a very long key ideally at least 112 bits In addition a technique called cipher block chaining is often applied whereby the result of the encryption of each block is used as a filter for the encryption of the next block see Figure 2 Cipher block chaining hides any repeated patterns of data that occur in the plaintext message Such patterns are always a useful handle for malicious cryptanalysts Plaintext Block Bl lock 2 Ciphertext Block Block 2 Figure 2 Cipher block chaining Block 3 Block 4 lgorithm Symmetric encryption al 2 4 2 Public Key Cryptography Advanced symmetric key cryptography offers very effective security for most purposes According to one estimate there is not enough energy available in the solar system to perform a computational brute force attack against a 256 bit key
30. same techniques of cryptography and hashing that are used to provide privacy and integrity protection see Sections 2 3 and 2 4 The difference is that the roles of public and private keys are reversed Let us suppose that Abigail wants to stamp a message with her digital signature First she passes the message through a hash function to create a message digest She then uses her private key to encrypt the digest and attaches the encrypted digest to the message This encrypted digest constitutes her digital signature Of course Abigail could encrypt the entire message using her private key however encrypting the digest is sufficient and much quicker If Brian is the recipient of Abigail s message and wants to verify that it originated with her he uses Abigail s public key to decrypt her signature He then runs the message through the same hash function that Abigail used to create the digest and compares it with the value of Abigail s decrypted signature The main users of digital signatures on the Internet at present are CAs who stamp them on every certificate they issue see Section 2 6 Although client side digital signatures are an effective means of non repudiation demand for them has so far been minimal This suggests that businesses and customers are happy to carry out transactions without them Instead client side non repudiation is normally implemented using password protection which is regarded as an acceptable compromise betw
31. te at short intervals throughout that period for example every 25 hours Each certificate is only valid until the next one arrives If the CA needs to revoke its endorsement of a gateway for example because the security of the gateway s private key has been compromised it simply stops sending the gateway certificates Clients of the gateway will begin receiving expired certificates and therefore will know that its security can no longer be relied on 3 2 WTLS in Alligata Secure NOTE THIS SECTION WILL NEED UPDATING 3 2 1 Supported WTLS Implementation Classes Alligata Secure supports all three WTLS implementation classes 3 2 2 Supported Digital Certificate Formats Alligata Secure supports both X 509 and WTLS certificates Note however that X 509 certificates are not currently supported by WAP client devices 3 2 3 Supported Encryption Algorithms Alligata Secure supports asymmetric keys generated by the RSA alogorithm and symmetric keys generated by the MC5 algorithm check 3 3 End to End Mobile Internet Security As we have seen WTLS provides security between the client device and the WAP gateway Most secure Mobile Internet transactions will also require security between the WAP gateway and the HTTP server This can be implemented using one of two arrangements SSL can be used between the gateway and the HTTP server This method presents a very slight security risk because data is momentarily held unencrypted inside
32. ter is nominally optional but should always be used except for testing password source the source of the password that will be used to decrypt the key file This parameter is formatted as follows pass password passwordis the password Avoid except for testing as Linux utilities such as ps can see the password env environment variable The denoted environment variable s value is the password file file name The first line of the denoted file is the password Ensure that the file s read permissions are limited to those who will need the password fd file descriptor number The password is read from the denoted file descriptor stdin The password is read from the standard input Example key generation command openssl genrsa rand randl rand2 rand3 out abigailskeys pem des3 passout file var keypass 3 Delete the files of random data that you created in Step 1 4 To generate a file containing just the public key type openssl rsa in source file out output file pubout For example openssl rsa in abigailskeys pem out abipub pem pubout 21
33. the gateway a phenonmenon known as the WAP Gap It is therefore important that administrative access to the gateway is strictly limited that the relationship between the gateway host and the content provider is strong and trusting and that the decrypted data is never stored outside the gateway s memory This set up is not recommended for operations requiring guaranteed security such as online banking 18 Chapter 3 3 Mobile Internet Security The gateway can be hosted by the content provider and placed behind the content provider s firewall This set up obviates both the WAP Gap and the need for SSL between the gateway and the HTTP server The content provider can if they want act as an Internet service provider ISP to the whole of the Mobile Internet once the secure transaction is over Alternatively the content provider can close the secure WAP connection after the secure transaction has taken place in which case the client user must dial in to their usual gateway in order to view other WAP sites Figure 10 outlines a secure Mobile Internet transaction of the second type with the WAP gateway behind the content provider s firewall Abigail is now the user of a WAP client device communicating with Brian via the WAP gateway Abigail WAP client Brian server irewall Mobile phone network d EE Local area network 8 de i H V WTLS handshake culminating in Abigail and the gateway agreeing on a session key
Download Pdf Manuals
Related Search
Related Contents
〔 5ー 故障かな?と思ったら INSTRUCTION MANUAL CC Autoranging True RMS Multimeter TM-87 / TM Guía rápida - SUPERNUTRIENTES Tacómetro/velocímetro SC 1000 - Brunswick Marine in EMEA ITNS-301- User Manual English 取扱説明書【応用編】 Copyright © All rights reserved.
Failed to retrieve file