- View the robots.txt at http://YOURBLOGURL.blogspot.com/robots.txt. If Disallow property is set to /search, search is ignored.
- Go to Blogger Dashboard > Select Blog > Select Settings tab > Search Preferences
- Enable Custom robots.txt
- Copy the content of current robots.txt but set the Disallow property to blank.
- Save changes
Sunday, September 22, 2013
How to enable Search Widget/Gadget
If the the Search widget or gadget of your Blogger blog is not working but the embedded search box on the Navigation bar at the top is working, the cause could be the setting of robots.txt.
Sunday, September 8, 2013
Steps involved during Execution of a Java Program
- JVM startup
- Loading – finding binary representation of class/interface then constructing the Class object
- Linking – combining class/interface into the run-time state of the JVM so that it can be executed
- Verification - semantic/structure validation
- Preparation - storage allocation, all static fields are created and initialized with default values
- Resolution – optionally resolve symbolic reference to other classes/interfaces
- Initialization – static initialization
- superclass/superinterface static initialization
- superclasses are initialized before subclasses
- interface initialization does not initialize superinterfaces
- only the class that declares static field is initialized, even though it might be referred to through the name of a subclass, a subinterface, or a class that implements an interface
- all static explicit field initializers and static initialization blocks are executed in textual order
- Instantiation - creation of object/class instance
All the instance variables, including those declared in superclasses, are initialized to their default values first. - start the constructor
- call explicit constructor this() if available
- call explicit/implicit super() unless class is Object – process recursively using same steps a. to e.
- all non-static field initializers and non-static initialization blocks are executed in textual order
- execute the rest of the body of constructor
- Finalization – finalize() method is called before storage for object is reclaimed by GC
- Unloading – happens if its classloader is reclaimed by GC. Bootstrap loader may not be unloaded.
- Program Exit
Monday, August 12, 2013
DWR error handling
Exception/error handling of DWR calls can be centralized by setting the handlers. More here: http://directwebremoting.org/dwr/documentation/browser/errors.html
dwr.engine.setErrorHandler(UI.errorHandler); dwr.engine.setTextHtmlHandler(UI.textHtmlHandler); // Handler for errors and exceptions errorHandler : function(msg, param2) { UI.hideLoading(); Utils.resetClick(); View.error(msg, 700) }, // Handler when Ajax returns a text such as session timeout, page not found etc... textHtmlHandler : function() { UI.hideLoading(); //View.error("Your session has expired, please login again." ); document.location = '/adapt/web/jsp/timeout.jsp'; },
Wednesday, August 7, 2013
Monday, July 29, 2013
Spring Inversion of Control
Bean Creation
- code POJO, add bean configuration element to the Spring XML configuration file or annotate the POJO
Inversion of Control
1. Constructor Injection
2. Setter Injection
3. Reference Injection
source: http://www.springbyexample.org/examples/intro-to-ioc.html
- code POJO, add bean configuration element to the Spring XML configuration file or annotate the POJO
<bean id="message" class="org.springbyexample.di.xml.BelleMessage"/>
Inversion of Control
1. Constructor Injection
public ConstructorMessage(String message) { this.message = message; }
<bean id="message" class="org.springbyexample.di.xml.ConstructorMessage"> <constructor-arg value="Spring is fun." /> </bean>
2. Setter Injection
public void setMessage(String message) { this.message = message; }
<bean id="message" class="org.springbyexample.di.xml.SetterMessage"> <property name="message" value="Spring is fun." /> </bean>
3. Reference Injection
<bean id="message" class="org.springbyexample.di.xml.SetterMessage"> <property name="message" ref="springMessage"" /> </bean>
source: http://www.springbyexample.org/examples/intro-to-ioc.html
Tuesday, July 9, 2013
Baking Supplies in Philippines
Sweetcraft Baking and Confectionery Supplies
Address: 373 Boni Avenue, Mandaluyong (in front of Rizal Technological University)Tel no.: 532-1595
- items: baking and cooking ingredients and equipment items, available in retail and wholesale quantities
- tips: don't buy marshmallows
Chef's Nook
Address: 20 Pilar St., Addition Hills, Mandaluyong (corner street of the Honda showroom along Shaw Blvd.)Tel. No.: 724- 5812
- cheap: chocolates and nuts are cheaper than chocolate lovers, refrigerated/stored well
Chocolate Lovers
Address of Main Branch: 45 P. Tuazon Blvd. corner C. Benitez St.Cubao Quezon, City 1109 ( use Benitez St, main entrance)Tel. Nos. 411-7474 / 724-5752 / 724-4964
Address of 2nd Branch: Kitanlad St. cor. Quezon Avenue, Quezon City
Tel nos. 732-8576 / 741-7487
- items: chocolate compound and nuts, lot of cake packaging materials, cake boards, ready made cupcake toppers, cupcake stands, chocolate moulders, lollipop sticks, baking pans, glycerin, glucose, gelatin, confectioner's sugar
- cheap: nuts
- not available: corrugated Boards, big cake boxes, big icing tips
Best Way Merchandising
Address: 691 Sto. Cristo Street, Divisoria (outside Divisoria mall)- items: everything, styrophor dummy cakes, edible flowers, candles, cake backdrop
- cheap: icing gel colors(85pesos/oz), nuts(500-800pesos/kg) and tylose powder (700pesos/kg), packaging materials like rolls of cellophane/or plastic wrapper(150-155 per roll)
- expensive: baking tools - gourmet writer (800-850 pesos), macaron mat costs 650, cutters, molders, etc
- tips: for wholesale confectionary sugar of Peotraco brand, it's in Sto. Cristo St. Binondo, for stainless items you can find them in Ilaya Street in Divisoria
- other stores near:
Estanislao Trading 817 Sto. Cristo Street, Divisoria (3rd store right after crossing M. de Santos Street where Allied Bank is) Tel.Nos: 241-9541 / 241-9487 / 243-3976 Enriquez Multi-Sales (near Allied Bank) 427 M. de Santos St., Divisoria Tel.Nos: 243-3678 / 243-3668 George Enterprises 736 Tabora St., Divisoria Manila Tel. Nos: 241-8578 / 241-8579
Killion Merchandising
Address: 40 Orosco Street, Quiapo Manila (near Quiapo church)Tel No. 733-8221, 733-2093
Fax 733-7036
- items: all baking ingredients except imported ones
- cheap: packaging materials, flour and confectioner's sugar (cheapest here)
- tips: long queue, come around 7:20-8:15 am
Nut Store in front of Killion
- cheap: choco bars, choco molds at lowest prices, also canned fruits, flour, confectionary sugar, ice cones flavoring etc.
Mostwell
- items: doilies and boxes for cupcakes and cakes, for candles and souveneirs plus plastics
New Sin Kian Heng
Address: 196 Carlos Palanca St. Quiapo, Manila (Right beside Quinta Market in Quiapo, Manila)Tel.Nos:733-2131/ 733-6871/ 733-6367/ 733-6381
- items: kitchenwares and baking equipments, lots of pans and molds, kitchen aids to pans, wilton decors, tips, whisks, stoves, ovens, spatulas
- tips: Goldilocks Cakeshop has been a long time client of their store
The Cocoa Pantry
Address: 130 Katipunan Road, Saint Ignatius Village QCTel No 4976957
Opening Hours
Mondays to Fridays - 10:00am to 4:30pm
Saturdays - 10:00am to 6:00pm
- items: essential baking ingredients and hard-to-find packaging materials
Baker's Depot
Branches:- San Juan: 188B N. Domingo cor Manzano st. Tel: 723-8810
- Waltermart North EDSA - Tel: 332-1281
- Waltermart Makati
- Victory Mall, Caloocan City
Bake Masters Food Ingredients Corp
Address: along Sucat Road Paranaque City.Tel No. 887-0150
- items: bakery, confectionery, snack and also meat processing ingredients
Carla's Bakery and Confectionary Supply
Address: Unit E Dr. A. Santos Ave. Sucat, Paranaque City (along Sucat Road in Paranaque, right across Santana Grove and Shopwise)- items: almost have anything you need from ingredients to packaging, variety of box sizes especially bigger sizes, can buy bigger boxes by pieces, they have corrugated boards
Love2Bake Co.
Address: 6 Palanca Street, Fruition Bldg, BF Homes, ParanaqueWebsite: https://www.facebook.com/love2bakeco
- items: baking supplies, fondant rolling pin
- cheap: americolor gel icing and airbrush color, pearl/luster/sparkle dusts, fondant moulds, cutters, macaron mats, pans, sheet trays, dummy styro and more
Ingrid’s Sweet Haven
Address: 363 Dr. Sixto Antonio Avenue corner Liwayway Street, Caniogan, PasigWebsites: http://www.ingridsweethaven.com
Tel No.: 641-2561
Baking Buddies
Website: https://www.facebook.com/bakingbuddies- items: mported fondant shoe cutters, airbrush compressor package, macaron mats and more
MK Kitchen
Website: http://mksurpluswarehouse.tripod.com- items: kitchen stainless steel working table, sheet trays, tart moulders, spoon forks and other kitchen utensils
RM Boxes
Website: http://www.rmboxes.com/- items: boxes and packaging needs (some boxes in Chocolate Lovers and other suppliers are actually from them)
Accesible Stores
Gourdo's
Address: Unit G, The Fort Entertainment Complex, Bonifacio Global City, Taguig Metro ManilaGreenbelt 2, Glorietta 4, Gateway, The Fort and The Podium (under the name LIVING WELL)
Tel.No.812-3022
- pure vanilla extract (The Vanilla Company), official reseller of Wilton
LandMark Makati
Address: 4th floor of Landmark Mall in Makati- cheap: baking tools such as rolling pins, muffin pans, fondant cutters and smoothers, chocolate moulds, spatulas, cupcake stands, baking pans, food processors and more
Cooks Exchange
Address: Glorietta 4, SM Megamall Bldg. A- more expensive ingredients
SM Supermarkets
- items: baking powder, baking soda, sugar, oil, butter, cheese in the supermarket
SM Department Stores
- items: Wilton and other branded products
Unimart
Greenhills Shopping Center, Ortigas Avenue, San JuanTel No. 721-0572
- items: complete range of Baker’s brand chocolate, wide range of Ferna products, like Dutch-process cocoa, glucose, and light corn syrup, malted milk powder
Healthy Options
- items: variety of flours including unbleached white, whole-wheat pastry, and spelt flours in both regular and organic. Healthy Options also carries corn meal, a wide range of oats, almond milk
- cheap: real vanilla
http://www.khakiness.com/2011/07/where-to-buy-complete-and-affordable.html
http://www.mysassybaker.com/2013/05/baking-supplies-stores-manila.html
http://alliwannadoisbake.blogspot.com/2011/05/where-to-go-for-great-buys-on-baking.html
http://www.pepper.ph/baking-ingredients-resource-guide/
Monday, July 8, 2013
Drools Core
- create a knowledge builder to load processes from various resources (for example from the classpath or from file system)
- create a knowledge base from the builder
- instantiate a session based on the knowledge base
- start executing processes
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); kbuilder.add(ResourceFactory.newClassPathResource("ruleflow.rf"), ResourceType.DRF); KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(); kbase.addKnowledgePackages(kbuilder.getKnowledgePackages()); StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession(); ProcessInstance processInstance = ksession.startProcess("com.sample.MyProcess"); ksession.fireAllRules();
Thursday, June 27, 2013
Investing Terms
Fundamental vs Technical Analysis
Technical Analyis
Support vs Resistance
Support - prices on a chart that tend to act as a floor by preventing the price of an asset from being pushed downward
Resistance levels - also regarded as a ceiling because these price levels prevent the market from moving prices upward
GSW1 - 1985 to 1997
Wave 3 - 1989 to Dec 1993 (500 to 3300/3474)
GSW2 - 1997 to 2001 - (3474 to 1000)
GSW3 - 2001 to ____
Super Cycle Wave 1 - Oct 2001 to Aug 2007 - 6 yrs more or less - (1000 to 3800)
Super Cycle Wave 2 - Oct 2007 to Nov 2008 - 1 yr " "
Super Cycle Wave 3 - 031709 to ? ( est dec2013 june 2014) - (1747 to ____)
cw 1 - 031709 to 080211
cw 2 - 080211 to 092611 or 110310 to 092611
cw 3 - 092611 to 051513
cw 4 - 051513 to 062513 nx is sideways/consolidations
cw 5 - 062513 to est. dec or nx yr
Supercycle Wave 4 may be in 2014 up to 2015 (1 year)
Supercylce Wave 5 may be in 2015.
Sources:
http://www.investopedia.com/articles/technical/061801.asp
http://www.pinoymoneytalk.com/forum
http://www.pinoymoneytalk.com/forum/index.php?topic=44602.720
Technical Analyis
Support vs Resistance
Support - prices on a chart that tend to act as a floor by preventing the price of an asset from being pushed downward
Resistance levels - also regarded as a ceiling because these price levels prevent the market from moving prices upward
GSW1 - 1985 to 1997
Wave 3 - 1989 to Dec 1993 (500 to 3300/3474)
GSW2 - 1997 to 2001 - (3474 to 1000)
GSW3 - 2001 to ____
Super Cycle Wave 1 - Oct 2001 to Aug 2007 - 6 yrs more or less - (1000 to 3800)
Super Cycle Wave 2 - Oct 2007 to Nov 2008 - 1 yr " "
Super Cycle Wave 3 - 031709 to ? ( est dec2013 june 2014) - (1747 to ____)
cw 1 - 031709 to 080211
cw 2 - 080211 to 092611 or 110310 to 092611
cw 3 - 092611 to 051513
cw 4 - 051513 to 062513 nx is sideways/consolidations
cw 5 - 062513 to est. dec or nx yr
Supercycle Wave 4 may be in 2014 up to 2015 (1 year)
Supercylce Wave 5 may be in 2015.
Sources:
http://www.investopedia.com/articles/technical/061801.asp
http://www.pinoymoneytalk.com/forum
http://www.pinoymoneytalk.com/forum/index.php?topic=44602.720
Wednesday, June 26, 2013
Time
EST (Eastern Standard Time) - time in US
DST (Daylight Saving Time) - 12 hr difference b/w NJ & PH
Standard Time - 13 hr difference b/w NJ & PH (4am NJ = 5PM PH)
DST (Daylight Saving Time) - 12 hr difference b/w NJ & PH
Standard Time - 13 hr difference b/w NJ & PH (4am NJ = 5PM PH)
GMT (Greenwich Mean Time) - global standard time
- US NJ/NY - GMT-5
- PH - GMT+8
Sunday, June 23, 2013
Financial Sites
Bloomberg - http://bloomberg.com/
Financial Times - http://www.ft.com/
Reuters - http://www.reuters.com/
BLOGS:
Absolutetraders.com - http://absolutetraders.com/main/
tsupitero.com - http://tsupitero.com/
CONCEPTS:
Elliott Wave - http://stockcharts.com/school/doku.php?id=chart_school:market_analysis:elliott_wave_theory
http://www.moneylifeblood.com/2013/02/dividend-paying-stocks-and-5-year.html#.UcqDo_lORH0
Financial Times - http://www.ft.com/
Reuters - http://www.reuters.com/
BLOGS:
Absolutetraders.com - http://absolutetraders.com/main/
tsupitero.com - http://tsupitero.com/
CONCEPTS:
Elliott Wave - http://stockcharts.com/school/doku.php?id=chart_school:market_analysis:elliott_wave_theory
http://www.moneylifeblood.com/2013/02/dividend-paying-stocks-and-5-year.html#.UcqDo_lORH0
Stock Code | Bloomberg Quote | Financial Times Quote | Reuters Quote | Dividend Per Share 2012 | Dividend Yield | Average | ||||
2011 | 2010 | 2009 | 2008 | 2007 | ||||||
FGEN | FGEN:PM | FGEN:PHS | FGEN:PS | 9.76 | 9.76 | |||||
TEL | TEL:PM | TEL:PHS | TEL:PS | Php 171 | 8.73 | 8.57 | 7.9 | 9.17 | 4.72 | 7.818 |
GLO | GLO:PM | GLO:PHS | GLO:PS | Php 65.00 | 5.47 | 0 | 2.46 | 6.45 | 7.39 | 4.354 |
RLC | RLC:PM | RLC:PHS | RLC:PS | Php 0.36 | 3.19 | 3.23 | 2.57 | 7.53 | 4.13 | |
URC | URC:PM | URC:PHS | URC:PS | Php 1.90 | 4.58 | 2.27 | 2.27 | 7.16 | 4.07 | |
BPI | BPI:PM | BPI:PHS | BPI:PS | Php 2.30 | 3.26 | 1.53 | 3.85 | 7.48 | 1.81 | 3.586 |
PX | PX:PM | PX:PHS | PX:PS | Php 0.53 | 1.68 | 0.87 | 7.7 | 3.416667 | ||
EDC | EDC:PM | EDC:PHS | EDC:PS | Php 1.14 | 2.54 | 2.04 | 2.66 | 7.76 | 1.9 | 3.38 |
SCC:PM | SCC:PHS | SCC:PS | Php 12.00 | 4.52 | 3.24 | 1.22 | 3.95 | 2.81 | 3.148 | |
SMPH | SMPH:PM | SMPH:PHS | SMPH:PS | Php 0.29 | 2.54 | 2.75 | 3.06 | 4 | 3.29 | 3.128 |
AP | AP:PM | AP:PHS | AP:PS | Php 1.54 | 4.41 | 0.96 | 2.33 | 4.74 | 3.11 | |
BDO | BDO:PM | BDO:PHS | BDO:PS | 3% stock div | 1.88 | 1.52 | 0.8 | 7.39 | 1.47 | 2.612 |
AEV | AEV:PM | AEV:PHS | AEV:PS | Php 1.58 | 3.94 | 1.4 | 3 | 0.89 | 2.9 | 2.426 |
MWC | MWC:PM | MWC:PHS | MWC:PS | Php 0.60 | 2.89 | 2.4 | 2.54 | 2.64 | 0.81 | 2.256 |
SMDC | SMDC:PM | SMDC:PHS | SMDC:PS | Php 0.05 | 1.62 | 1.12 | 1.77 | 3.18 | 3.56 | 2.25 |
DMC | DMC:PM | DMC:PHS | DMC:PS | Php 1.20 | 2.42 | 1.39 | 2.06 | 3.77 | 1.04 | 2.136 |
MER:PM | MER:PHS | MER:PS | Php 8.10 | 3.16 | 2.48 | 1.22 | 1.68 | 2.135 | ||
SMC | SMC:PM | SMC:PHS | SMC:PS | Php 1.75 | 0.9 | 4.12 | 0.51 | 2.59 | 2.37 | 2.098 |
MBT:PM | MBT:PHS | MBT:PS | Php 1.0 | 1.47 | 0.83 | 2.28 | 4.47 | 1.13 | 2.036 | |
AGI:PM | AGI:PHS | AGI:PS | Php 0.36 | 3.48 | 0.48 | 1.98 | ||||
SM | SM:PM | SM:PHS | SM:PS | Php 10.40 | 1.55 | 1.45 | 2.12 | 3.07 | 1.59 | 1.956 |
JFC | JFC:PM | JFC:PHS | JFC:PS | Php 2.20 | 1.18 | 2.53 | 1.55 | 2.02 | 1.54 | 1.764 |
AC | AC:PM | AC:PHS | AC:PS | Php 2.00 | 1.93 | 1.22 | 1.59 | 1.15 | 2.55 | 1.688 |
ICT | ICT:PM | ICT:PHS | ICT:PS | Php 0.65 | 0.94 | 0.89 | 1.78 | 2.75 | 0.66 | 1.404 |
MEG:PM | MEG:PHS | MEG:PS | Php 0.03 | 1.4 | 0.77 | 1.28 | 2.77 | 0.49 | 1.342 | |
PCOR:PM | PCOR:PHS | PCOR:PS | Php 0.10 | 0.79 | 0.53 | 1.96 | 1.75 | 1.2575 | ||
ALI | ALI:PM | ALI:PHS | ALI:PS | Php 0.21 | 0.97 | 0.57 | 0.53 | 0.94 | 0.42 | 0.686 |
JGS | JGS:PM | JGS:PHS | JGS:PS | Php 0.16 | 0.32 | 0.26 | 0.45 | 1.76 | 0.26 | 0.61 |
MPI | MPI:PM | MPI:PHS | MPI:PS | Php 0.03 | 0.68 | 0.26 | 0.47 |
Monday, June 10, 2013
Outline: The 16 Days of Competencies
POST: http://zengerfolkman.wordpress.com/2011/09/21/the-16-days-of-competencies-1-displays-high-integrity-and-honesty/
POSTED BY: zengerfolkman, September 21, 2011
#1 DISPLAYS HIGH INTEGRITY AND HONESTY
#2 TECHNICAL AND PROFESSIONAL EXPERTISE
#3 SOLVES PROBLEMS AND ANALYZES ISSUES
#4 INNOVATES
#5 PRACTICES SELF-DEVELOPMENT
#6 DRIVES FOR RESULTS
#7 ESTABLISH STRETCH GOALS
#8 TAKES INITIATIVE
#9 COMMUNICATES POWERFULLY AND PROLIFICALLY
#10 INSPIRES AND MOTIVATES OTHERS TO HIGH PERFORMANCE
#11 BUILDS RELATIONSHIPS
#12 DEVELOPS OTHERS
#13 COLLABORATION AND TEAMWORK
#14 DEVELOPS STRATEGIC PERSPECTIVE
#15 CHAMPIONS CHANGE
#16 CONNECTS THE GROUP TO THE OUTSIDE WORLD
POSTED BY: zengerfolkman, September 21, 2011
#1 DISPLAYS HIGH INTEGRITY AND HONESTY
- Avoid saying one thing and doing another (i.e., walk the talk)
- Follow through on promises and commitments
- Model the core values
- Lead by example
#2 TECHNICAL AND PROFESSIONAL EXPERTISE
- Stay up to date in the field
- Demonstrate technical, functional, and job-specific knowledge required for assignments
- Be sought out for opinions, advice, and counsel
- Make a significant contribution toward achieving team goals through knowledge and skills
#3 SOLVES PROBLEMS AND ANALYZES ISSUES
- Systematically evaluate information by using a variety of proven methods and techniques
- Encourage alternative approaches and new ideas
- See patterns and trends in complex data and use the patterns to outline a path forward
- Clarify complex data or situations so that others can comprehend, respond, and contribute
#4 INNOVATES
- Consistently generate creative, resourceful solutions to problems
- Constructively challenge the usual approach to doing things, and find new and better ways to do the job
- Create a culture of innovation and learning that drives individual development
- Build on other people’s suggestions and ideas. (Doing so often leads to new approaches and improvements)
#5 PRACTICES SELF-DEVELOPMENT
- Make constructive efforts to change and improve based on feedback from others
- Learn from both success and failure
- Model self-development and embrace its value
#6 DRIVES FOR RESULTS
- Do everything possible to meet goals or deadlines
- Consistently meet or exceed commitments
- Aggressively pursue all assignments and projects until completion
#7 ESTABLISH STRETCH GOALS
- Build Commitment with all employees on team goals and objectives
- Promote a spirit of continuous improvement
- Maintain High Standards of performance
#8 TAKES INITIATIVE
- Volunteer for Challenging assignments
- Go above and beyond what needs to be done without being told
- Have the confidence to initiate action independently
#9 COMMUNICATES POWERFULLY AND PROLIFICALLY
- Communicate clearly and concisely
- Give clear, understandable instructions to employees and others
- Skillfully communicate new insights
#10 INSPIRES AND MOTIVATES OTHERS TO HIGH PERFORMANCE
- Have a personal style that helps to positively motivate others.
- Energize people to go the extra mile.
- Skillfully persuade others toward commitment to ideas or action.
#11 BUILDS RELATIONSHIPS
- Deal effectively with people in order to get work accomplished
- By trusted by work group members
- Be approachable and friendly
#12 DEVELOPS OTHERS
- Act as a coach or mentor to facilitate learning from experience
- Give honest and candid feedback
- Find stretch assignments for individuals which require them to achieve significant but realistic goals
- Willingly share his/her time to help others develop.
#13 COLLABORATION AND TEAMWORK
- Promote a spirit of cooperation with other members of the work group
- Champion an environment that supports effective teamwork
- Have the trust and respect of the team
#14 DEVELOPS STRATEGIC PERSPECTIVE
- Know how work relates to the organization’s business strategy
- Balance the short-term and long-term needs of the organization
- Demonstrate forward thinking about tomorrow’s issues
#15 CHAMPIONS CHANGE
- Act as a change agent—strongly support the continual need to change
- Become a champion for projects or programs, presenting them so that others support them.
- Be an effective marketer for work group projects, programs, or products.
#16 CONNECTS THE GROUP TO THE OUTSIDE WORLD
- Know how to deliver products or services that delight customers by meeting and exceeding their expectations
- Use knowledge and feedback from an external perspective to improve products or services
Sunday, June 2, 2013
SSL and certificates
Terms:
Server Setup: (http://www.lwithers.me.uk/articles/cacert.html)
How it works:
Commands:
Source:
http://www.digicert.com/ssl.htm
- SSL (Secure Socket Layer) - a security protocol that ensures secure transaction/connection between a server and a client
- https - beginning of an SSL-secured website/URL
- SSL Certificate - a small data file that establishes encrypted connection. It contains a key pair, a public and private key, and the subject identifying the certificate. Typically an SSL Certificate will contain your domain name, your company name, your address, your city, your state and your country. It will also contain the expiration date of the Certificate and details of the Certification Authority responsible for the issuance of the Certificate.
- Certificate Authority or CA - the SSL Certificate issuer. It researches companies, checks references, assures identity and encrypts data to and from servers.
- certificate chain - a series of intermediate certificates
- public, private, and session keys - anything encrypted with the public key can only be decrypted with the private key, and vice versa. After the secure connection is made, the session key is used to encrypt all transmitted data.
- In order for a server to handle SSL connections, it must activate SSL.
- Server will be prompted several question about identity of website or organization.
- Server generates the CSR (Certificate Signing Request). It contains the private key and a CSR data file.
- The CA uses the CSR data file to create a public key to match the private key.
- CA sends the SSL certificate.
- Server installs the SSL certificate. (http://www.digicert.com/ssl-certificate-installation.htm)
How it works:
- Browser connects to a web server secured with SSL (https). Browser requests that the server identify itself.
- Server sends a copy of its SSL Certificate (including the server’s public key), to assure the client that it can be trusted. The SSL Certficate was purchased from CA.
- Browser checks the certificate root against a list of trusted CAs and that the certificate is unexpired, unrevoked, and that its common name is valid for the website that it is connecting to. If the browser trusts the certificate, it creates, encrypts, and sends back a symmetric session key using the server’s public key. --- "SSL handshake"
- Server decrypts the symmetric session key using its private key and sends back an acknowledgement encrypted with the session key to start the encrypted session.
- Server and Browser now encrypt all transmitted data with the session key.
Commands:
- the default password is changeit
- list certificates
keytool -list -v -keystore [cacert location], ex. keytool -list -v -keystore cacerts.jks - list certificates to a text file
keytool -list -v -keystore [cacert location] > [text file path]
keytool -list -v -keystore "C:/Program Files (x86)/Java/jre6/lib/security/cacerts" > java_cacerts.txt - delete certificate (used when certificate is expired)
keytool -delete -v -alias [alias] -keystore [cacert location], ex. keytool -delete -v -alias [alias] -keystore cacerts.jks - add certificate to cacert
keytool -import -alias [alias name] -keystore [cacert location] -file [cert to add path]
keytool -import -alias Verisign -keystore "C:/Program Files (x86)/Java/jre6/lib/security/cacerts" -file C:/bel/docs/certs/Verisign.cer
Source:
http://www.digicert.com/ssl.htm
Subscribe to:
Posts (Atom)