As Smiffy says, there are various ways of doing this, though broadly speaking it comes down to salt-curing for a relatively short time and hanging (air drying) somewhere dark and cool for six months or more.
We use salt only for the curing. You won't need very large amounts, two kilo's will probably do (I stopped measuring and just go by sight). It's easiest to have the butcher remove the bone for you as that makes slicing afterwards so much easier. We don't use saltpetre, nor sugar (we do use some sugar when making bacon, but our hams have never been salty).
Rub the salt all over, wearing rubber gloves is best, and make sure there's plenty of salt inside the meat if the bone has been taken out.
We cure the meat for about 1 day per 1/2 kilo, so a whole large leg would take around two weeks. Or, as mentioned earlier, cure until no more liquid leaches out.
Whilst it's curing, we keep the meat in a plastic container at the coolest place possible - in our case, that's at our front door (funny looks from postwoman

)
We don't bother anymore tipping out the liquid, but the meat has weights on it. For weights, the heaviest things we have are hubby's drill wrapped in tea towels and lots of clingfilm, and now we also have a few pieces of cast iron from a bath, again well wrapped. Tins of tomatoes etc are far too light and they roll off too easily.
After curing, rinse the meat under the tap and dry with tea towels.
Use a few handfuls or more of lard (by the time our meat is cured we also have rendered all the lard) and smear it thickly over every bit of exposed meat. This is important as it prevents the skin from drying out. If the skin dries out, the moisture can't escape from the meat and it will rot inside.
We still put pepper on top of the fat, it's supposed to keep the bugs off and even though that's probably meant for meat hung in a barn or so we keep on doing it.
We then hang the meat in a cheap cotton pillowcase in the loft, just from a clothing rail and near the cold water tank. It's pitch dark up there (light makes fat go rancid), it's relatively humid (around 50%) and cold as we don't have our weaners done until September. Last year we had an Indian summer here and it was still 20C in the beginning of October but it didn't spoil it.
We hang ours for six months before trying it. You can always take a piece off and cover the rest with fat again and hang it back.
If you have a professional meat slicer, it works really welll on dried ham and you can make those thin slices that will have plenty of flavour and make the meat go a long way.
Enjoy!