Showing posts with label Tricks. Show all posts
Showing posts with label Tricks. Show all posts

Sunday, December 10, 2023

Extracting Private key and certificate from .PEM file using OpenSSL


OpenSSL, a popular open-source tool for working with cryptographic operations, can be used to extract the.pem and.key files from a.pfx (or.p12) file. 
The steps are as follows:


Extraction of.pem and.key from.pfx File:

Install OpenSSL as follows:

Check that your system has OpenSSL installed. You can get it from the OpenSSL website or install it with a package manager such as Homebrew on macOS or apt-get on Linux.



Conversion Method:

OpenSSL is used to extract the private key and certificate from the.pfx file.

Code:-
openssl pkcs12 -in yourfile.pfx -nocerts -out privatekey.key

Change yourfile.pfx to the name of privatekey.key file. The private key will be extracted and saved to privatekey.key using this command.


Code:-
openssl pkcs12 -in yourfile.pfx -clcerts -nokeys -out certificate.pem

This command will extract the certificate and save it to certificate.pem.


K@run@

Sunday, December 2, 2012

DRDO Interview Questions for Electrical Engineers


Ramana my Friend's DRDO interview Questions:

Chairman:

1. What are the various experiments you have done in your machines lab
2. How the vibrations are produced from mobile phone when it is in that mode

Departmental Expert-1:

1. Why your eyes are in red colour, don't you have enough sleep yesterday night
2. what is your favorite subject
3. What is meant by zpf... this term is related to which machine
4. What is meant by reluctance motor
5. write the expression for power developed in salient pole synchronous motor?
6. what is meant by load angle in detail
7. Can you explain hunting breafly..?
8. Is there any method to reduce hunting...?
I think you studied power system analysis in your B.Tech....not power systems, power system analysis

9. what are the various quantities required for design of power system
10. Can you tell me the method for power system stability analysis
He gives clue for above question
11. Explain equal area criterion analysis method

Departmental expert-2:

1. this question related to communication subject
2. what is meant by stepper motor
3. how the steps can achieve
4. what is meant by BLDC motor
5. what is the constructional and operational difference between BLDC motor and DC motor
6. without the brushes and commutator how can you achieve the current reversal?
for the above question Departmental Expert-1 gives 50% answer as clue...
7. what is the purposes of commutator in DC machines
8. In diesel engine trains how the exact system is there inside
9. How can we get the supply for fans and lights in trains
10. Name the special generator used for above...?
for this question departmental expert-1 gives full answer

External expert:

1. instead of using AC transmission why we are using HVDC
2. What is the main adv. and dis adv. of HVDC
3. can you learn about the earth fault circuit breaker in houses
4. what is meant by MCB? how it works? which type of CB it is?

Departmental expert-1:

1. apart from the losses, cost etc etc..... the advantage of HVDC over any other....

..................................@@@000@@@...............................

Lastly the departmental expert-1 asks Well Mr. Ramana suppose if you are selected in this job, afterwards you got
other job based on B.Tech (example in ISRO that is also a R&d org.)then what do you do....

K@run@

Tuesday, November 20, 2012

Bike Riding Tips and Tricks

Now a days the youth are more passionate about their bikes and adventurous rides with it. The bikes and stunts are really a guy thing which drives the riders to crazy fun like nothing else. But they don’t realise the risk underneath their stunts until they are once experienced for. The following tips will be quite useful for the begginers who are going to be a good riders in future. With all senses a rider has to control the following:
 • Brake 
• Clutch 
• Acclerator 
• Signals lights 
• Sharp turns 
• 150 degree view ahead 
With perfection in these the ride will be under control and happy....but lacking in any thing of above may result in severe disasters.. Common mistakes by Riders: 
• Applying brakes while crossing sharp turns which result in skidding of vehicle. 
• Making the vehicle to run down street with engine off. 
• Not maintaining the center of mass of (bike+rider) jointly.
 • Careless ride by consuming alcohol.,etc.
If you can’t turn a crossing sharply then just apply brakes ahead and then slowly make the turn rather than skidding over the road. Riding the bike downwards with engine off makes the rider to loose control over the vehicle.Remember that an engine in On state works greatly than the engine in Off state.The person should understand his bike well enough to maintaine the center of gravity always aligned in correct manner.The following fig shows the difference
By carefull pressuring up your weight on the foot rest will do a great job under sharp turns. Always drive on the right side of the road and for some countries like India you should align yourself on the left side of the road as per the traffic signs and signals.Use hand signals when ever and where ever necessary.
YOUR DEAR ONES ARE WAITING AT HOME, THINK ABOUT THEM AND DRIVE SAFE. K@run@