URL phải là một địa chỉ đầy đủ. Phương pháp async điều khiển cho dù phương thức send () sẽ chặn (chờ đợi cho dữ liệu trở lại từ máy chủ) hoặc trả lại ngay lập tức. Người sử dụng và vượt qua các thông số được sử dụng nếu các tài nguyên máy chủ yêu cầu HTTP xác thực. Gọi yêu cầu đến máy chủ. Nó sử dụng các thiết lập được cung cấp để mở () và sẽ hoặc là | CHAPTER 21 CERTIFICATE AUTHENTICATION 317 X509v3 Basic Constraints CA TRUE Confirm this reads TRUE Certificate is to be certified until May 12 01 52 18 2010 GMT 1095 days Write out database with 1 new entries Data Base Updated Caution Make sure X509V3 Basic Constraints CA TRUE is set. If it is not your entire CA will not work as expected for peer verification Some versions of OpenSSL ship with a script that appears to do the same thing as the script but it will not set this attribute. This operation creates a new directory structure demoCA and generates your root CA certificate. This certificate is contained in demoCA . The private key which must be protected is placed in demoCA private . The file may be shared as it contains only public-key information. Next you will use this certificate to set up an Apache web server for SSL operation using a self-signed certificate. Create a Self-Signed Web Server Certificate Creating a web server certificate using the script and your new CA certificate is trivial. Execute the following command . -newreq Generating a 1024 bit RSA private key . . writing new private key to Enter PEM pass phrase password Verifying - Enter PEM pass phrase password You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value If you enter . the field will be left blank. 318 CHAPTER 21 CERTIFICATE AUTHENTICATION Country Name 2 letter code CA State or Province Name full name Alberta Locality Name eg city Organization Name eg company Kevin McArthur Organizational Unit Name eg section Web Server Common Name eg YOUR name localhost Email Address Please enter the following extra attributes to be sent with your certificate request A challenge password An optional company