# Generate a Private Key openssl genrsa -out privatekey.pem 2048 # Generate a self-signed certificate openssl req -new -x509 -key privatekey.pem -out self_signed_certificate.pem -days 365 # Convert PEM certificate to CER format openssl x509 -inform PEM -in self_signed_certificate.pem -outform DER -out self_signed_certificate.cer # Convert a PEM certificate to a PFX (PKCS#12) file openssl pkcs12 -export -out certificate.pfx -inkey privatekey.pem -in self_signed_certificate.pem # Extract a private key from a PFX file (contain bag attributes) # openssl pkcs12 -in certificate.pfx -nocerts -nodes -out privatekey_frompfx.pem openssl pkcs12 -in certificate.pfx -nocerts -nodes -out privatekey_frompfx.key # Extract a private key (no bag attributes) - identical to privatekey.pem openssl rsa -in privatekey_frompfx.key -out privatekey_frompfx.key # Extract public key from key pair openssl rsa -in privatekey_frompfx.key -pubout -out publickey.key #openssl rsa -in privatekey.pem -pubout -out publickey2.key # Convert CER to CRT openssl x509 -inform DER -in self_signed_certificate.cer -out self_signed_certificate.crt #openssl x509 -inform PEM -in self_signed_certificate.cer -out self_signed_certificate.crt # Convert CRT to CER openssl x509 -in self_signed_certificate.crt -outform DER -out self_signed_certificate2.cer ##### # Generate a Certificate Signing Request (CSR) - optional if going to generate a self-signed #openssl req -new -key privatekey.pem -out certificate_request.csr #openssl x509 -req -in certificate_request.csr -signkey privatekey.pem -out self_signed_certificate3.crt
hongjun's Blog
Computer, Technology, Databases, Google, Internet, Mobile, Linux, Microsoft, Open Source, Security, Social Media, Web Development, Business, Finance
Wednesday, April 10, 2024
Useful openssl commands to generate certificates and keys
Sunday, January 14, 2024
Oracle: Find out total number of records of all tables
select table_name, to_number(extractvalue(xmltype(dbms_xmlgen.getxml('select count(*) c from '||owner||'.'||table_name)),'/ROWSET/ROW/C')) as count from all_tables where owner = 'SchemaName';
Hope it helps.
MSSQL: Find out total number of records of all tables
SELECT tbl.name, CAST(p.rows AS int) 'count', tbl.schema_id, SCHEMA_NAME(tbl.schema_id) schema_name FROM sys.tables AS tbl INNER JOIN sys.indexes AS idx ON idx.object_id = tbl.object_id AND idx.index_id < 2 INNER JOIN sys.partitions AS p ON p.object_id = CAST(tbl.object_id AS int) AND p.index_id = idx.index_id --WHERE ((SCHEMA_NAME(tbl.schema_id) = 'dbo')) ORDER BY 2 DESC
Hope it helps.
Sunday, August 06, 2023
Saturday, February 25, 2023
Friday, October 28, 2022
Sunday, August 14, 2022
Singapore Bus - Privacy Policy
Terms Of Use
By downloading or using the app, these terms will automatically apply to you – please read them carefully before using the app.
We are offering you this app to use for your own personal use without cost, but the app itself, and all trade marks, copyright, database rights and other intellectual property rights related to it, still belong to hongjun.sg. In particular, all content including images and videos in the app are the property of hongjun.sg and you may not reproduce such content in any form.
You should be aware that you cannot send it on to anyone else, and you’re not allowed to copy, translate or modify the app, any part of the app, or our trademarks in any way. You also may not attempt to extract the source code of the app.
We do not accept any liability for any injuries, damage or losses you may incur as a result of your use of the app.
Privacy Policy
What information does the Application obtain and how is it used?
User Provided Information
Nil
Automatically Collected Information
Nil
Does the Application collect precise real time location information of the device?
Nil
Do third parties see and/or have access to information obtained by the Application?
Nil
Singapore Bus - Bus Arrival [ Android App ]
Thursday, April 01, 2021
Magic Quadrant for Analytics and Business Intelligence Platforms
Gartner Report on the Magic Quadrant for Analytics and Business Intelligence Platforms as of February 2021.
Popular Posts
-
Google url shortener service, goo.gl , is now much improved with newly included features like easier copy and paste, and ability to delete e...
-
I would like to apologize that sigining of my guestbook is not possible at the moment due to an unexpected bug. There is already 74 entries ...
-
The Google Adsense made a blog post with a video to help us understand the concept behind eCPM (Effective Cost Per Thousand Impressions). ...
-
As of today, Google will start using a new shortened url - g.co , to promote Google websites. g.co works differently as compared to a long-t...
-
*********** Try to sleep now, close your eyes Soon the birds would stop singing Twinkling stars, are shining bright They'll be watch...