It seems not that difficult at all. Have a look at

http://candleandsoap.about.com/od/soaprecipes/a/cpshavingrecipe.htm