Merge lp:~allenap/gwacl/readme-pfx-unused into lp:gwacl

Proposed by Gavin Panella
Status: Merged
Approved by: Gavin Panella
Approved revision: 111
Merged at revision: 110
Proposed branch: lp:~allenap/gwacl/readme-pfx-unused
Merge into: lp:gwacl
Diff against target: 87 lines (+34/-34)
1 file modified
README (+34/-34)
To merge this branch: bzr merge lp:~allenap/gwacl/readme-pfx-unused
Reviewer Review Type Date Requested Status
Julian Edwards (community) Approve
Review via email: mp+169804@code.launchpad.net

Commit message

README clean-ups, including removal of unused .pfx generation instructions.

To post a comment you must log in.
Revision history for this message
Julian Edwards (julian-edwards) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 review: approve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlG/tDgACgkQWhGlTF8G/Heh2gCfZZjozF7L+RazAcAjA3dpb4Jf
yUoAoJl4Bt/cny1iUUJzj181Z7DLiPeD
=77sF
-----END PGP SIGNATURE-----

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README'
2--- README 2013-03-20 02:48:39 +0000
3+++ README 2013-06-17 14:17:30 +0000
4@@ -1,49 +1,49 @@
5-GWACL - The Go Windows Azure Client Library.
6+===========================================
7+GWACL - The Go Windows Azure Client Library
8+===========================================
9+
10
11 Random notes, clean this up later
12 =================================
13
14-You need libcurl
15-----------------
16-
17-The code that communicates with Azure's management API uses libcurl, through a
18-Go language binding called go-curl. Install the libcurl headers and go-curl:
19+
20+Install libcurl
21+---------------
22+
23+The code that communicates with Azure's management API uses *libcurl*, through
24+a Go language binding called *go-curl*. Install the libcurl headers and
25+go-curl::
26
27 sudo apt-get install libcurl4-openssl-dev
28 go get github.com/andelf/go-curl
29
30 On Ubuntu 12.10 at least, you specifically need the given version of libcurl.
31-With other versions you will receive unexpected "403" http status codes
32+With other versions you will receive unexpected "403" HTTP status codes
33 ("Forbidden") from the Azure server.
34
35 Why use libcurl? At the time of writing, Go's built-in http package does not
36-support TLS renegotiation. We find that Azure forces such a renegotiation when
37-we access the management API. The use of libcurl is embedded so that future
38-implementations can swap it out for a different http library without breaking
39-compatibility.
40-
41-
42-To generate an x509 key to talk to Azure
43-----------------------------------------
44-
45-Run this:
46-
47- openssl req -config /usr/share/ssl-cert/ssleay.cnf -x509 -nodes -days 3650 -newkey rsa:2048 -keyout azure.pem -out azure.pem
48-
49-And then export a certificate that you can upload to Azure's management portal
50-(see http://msdn.microsoft.com/en-us/library/windowsazure/gg551726.aspx):
51-
52- openssl pkcs12 -export -out azure.pfx -in azure.pem
53-
54-It'll prompt you for a password. For our purposes, just leave it blank.
55-
56-Note the use of the ssleay.cnf - it just contains some crappy defaults so you
57-don't get prompted for certificate data. You can leave it out if you want, but
58-then you'll need to enter country, organisation etc.
59-
60-Azure wants you to upload a .cer file (which is in DER format). Here's how you
61-can extract a .crt file from the .pfx:
62+support TLS renegotiation. We find that Azure forces such a renegotiation
63+when we access the management API. The use of libcurl is embedded so that
64+future implementations can swap it out for a different http library without
65+breaking compatibility.
66+
67+
68+Generate an x509 key to talk to Azure
69+-------------------------------------
70+
71+Azure requires that API clients use an x509 certificate to authenticate to the
72+management API. Create the certificate with::
73+
74+ openssl req -config /usr/share/ssl-cert/ssleay.cnf -x509 -nodes \
75+ -days 3650 -newkey rsa:2048 -keyout azure.pem -out azure.pem
76+
77+Note the use of ``ssleay.cnf``. It just contains some crappy defaults so you
78+don't get prompted for certificate data. You can leave it out if you want,
79+but then you'll need to enter country, organisation, etc.
80+
81+Azure wants you to upload a ``.cer`` file (which is in DER format). Here's
82+how you can extract a ``.cer`` file from the ``.pem``::
83
84 openssl x509 -inform pem -in azure.pem -outform der -out azure.cer
85
86-You can now upload azure.cer to Azure as a management certificate.
87+You can now upload ``azure.cer`` to Azure as a management certificate.

Subscribers

People subscribed via source and target branches

to all changes: