marco.maranao.ca
Open in
urlscan Pro
3.98.248.41
Public Scan
URL:
https://marco.maranao.ca/articles/how-decrypt-rsa-private-key-using-openssl
Submission: On August 19 via api from CA — Scanned from CA
Submission: On August 19 via api from CA — Scanned from CA
Form analysis
2 forms found in the DOMPOST /comment/reply/node/139/comment
<form class="comment-comment-form comment-form" data-drupal-selector="comment-form" action="/comment/reply/node/139/comment" method="post" id="comment-form" accept-charset="UTF-8">
<div class="js-form-item form-item js-form-type-textfield form-type-textfield js-form-item-name form-item-name"> <label for="edit-name">Your name</label> <input data-drupal-default-value="Anonymous" data-drupal-selector="edit-name" type="text"
id="edit-name" name="name" value="" size="30" maxlength="60" class="form-text"></div><input autocomplete="off" data-drupal-selector="form-q7qe34osmvhclchg0sazye8skk3suqjzlnwyn7fmrti" type="hidden" name="form_build_id"
value="form-Q7qE34oSmVHclcHg0sAzye8Skk3SUqJZlnwyN7FMRtI"><input data-drupal-selector="edit-comment-comment-form" type="hidden" name="form_id" value="comment_comment_form">
<div class="field--type-text-long field--name-comment-body field--widget-text-textarea js-form-wrapper form-wrapper" data-drupal-selector="edit-comment-body-wrapper" id="edit-comment-body-wrapper">
<div class="js-text-format-wrapper text-format-wrapper js-form-item form-item">
<div class="js-form-item form-item js-form-type-textarea form-type-textarea js-form-item-comment-body-0-value form-item-comment-body-0-value"> <label for="edit-comment-body-0-value" class="js-form-required form-required">Comment</label>
<div class="form-textarea-wrapper"><textarea class="js-text-full text-full form-textarea required resize-vertical" data-media-embed-host-entity-langcode="en" data-drupal-selector="edit-comment-body-0-value" id="edit-comment-body-0-value"
name="comment_body[0][value]" rows="5" cols="60" placeholder="" required="required" aria-required="true"></textarea></div>
</div>
<div class="js-filter-wrapper filter-wrapper js-form-wrapper form-wrapper" data-drupal-selector="edit-comment-body-0-format" id="edit-comment-body-0-format">
<div class="filter-help js-form-wrapper form-wrapper" data-drupal-selector="edit-comment-body-0-format-help" id="edit-comment-body-0-format-help">
<a href="/filter/tips" target="_blank" data-drupal-selector="edit-comment-body-0-format-help-about" id="edit-comment-body-0-format-help-about">About text formats</a></div>
<div class="js-filter-guidelines filter-guidelines js-form-wrapper form-wrapper" data-drupal-selector="edit-comment-body-0-format-guidelines" id="edit-comment-body-0-format-guidelines" data-once="filter-guidelines">
<div data-drupal-format-id="plain_text" class="filter-guidelines-item filter-guidelines-plain_text">
<h4 class="label" style="display: none;">Plain text</h4>
<ul class="tips">
<li>No HTML tags allowed.</li>
<li>Lines and paragraphs break automatically.</li>
<li>Web page addresses and email addresses turn into links automatically.</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="field--type-language field--name-langcode field--widget-language-select js-form-wrapper form-wrapper" data-drupal-selector="edit-langcode-wrapper" id="edit-langcode-wrapper"></div>
<div data-drupal-selector="edit-captcha" class="captcha"><input data-drupal-selector="edit-captcha-sid" type="hidden" name="captcha_sid" value="3781277"><input data-drupal-selector="edit-captcha-token" type="hidden" name="captcha_token"
value="ie1amgiRmc-B2toRoGCvKSyKJRfOn0hqWuk1OzgB_O8"><input data-drupal-selector="edit-captcha-response" type="hidden" name="captcha_response" value="Google no captcha">
<div class="g-recaptcha" data-sitekey="6LfvgcsUAAAAAIosJTRRTqmTBIoBFVIwpUQ3aZZ5" data-theme="light" data-type="image">
<div style="width: 304px; height: 78px;">
<div><iframe title="reCAPTCHA" width="304" height="78" role="presentation" name="a-laqocoegpw8" frameborder="0" scrolling="no"
sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation allow-modals allow-popups-to-escape-sandbox allow-storage-access-by-user-activation"
src="https://www.recaptcha.net/recaptcha/api2/anchor?ar=1&k=6LfvgcsUAAAAAIosJTRRTqmTBIoBFVIwpUQ3aZZ5&co=aHR0cHM6Ly9tYXJjby5tYXJhbmFvLmNhOjQ0Mw..&hl=en&type=image&v=hfUfsXWZFeg83qqxrK27GB8P&theme=light&size=normal&cb=fkhq2lct3g5q"></iframe>
</div><textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response"
style="width: 250px; height: 40px; border: 1px solid rgb(193, 193, 193); margin: 10px 25px; padding: 0px; resize: none; display: none;"></textarea>
</div><iframe style="display: none;"></iframe>
</div><noscript>
<div style="width: 302px; height: 352px;">
<div style="width: 302px; height: 352px; position: relative;">
<div style="width: 302px; height: 352px; position: absolute;"><iframe src="https://www.recaptcha.net/recaptcha/api/fallback?k=6LfvgcsUAAAAAIosJTRRTqmTBIoBFVIwpUQ3aZZ5&hl=en" frameborder="0" scrolling="no"
style="width: 302px; height:352px; border-style: none;"></iframe></div>
<div style="width: 250px; height: 80px; position: absolute; border-style: none; bottom: 21px; left: 25px; margin: 0px; padding: 0px; right: 25px;"><textarea id="g-recaptcha-response" name="g-recaptcha-response" class="g-recaptcha-response"
style="width: 250px; height: 80px; border: 1px solid #c1c1c1; margin: 0px; padding: 0px; resize: none;" value=""></textarea></div>
</div>
</div>
</noscript>
</div>
<div data-drupal-selector="edit-actions" class="form-actions js-form-wrapper form-wrapper" id="edit-actions"><input data-drupal-selector="edit-submit" type="submit" id="edit-submit" name="op" value="Save"
class="button button--primary js-form-submit form-submit"></div>
</form>
GET /search/node
<form action="/search/node" method="get" id="search-block-form" accept-charset="UTF-8">
<div class="js-form-item form-item js-form-type-search form-type-search js-form-item-keys form-item-keys form-no-label"> <label for="edit-keys" class="visually-hidden">Search</label> <input title="Enter the terms you wish to search for."
data-drupal-selector="edit-keys" type="search" id="edit-keys" name="keys" value="" size="15" maxlength="128" class="form-search"></div>
<div data-drupal-selector="edit-actions" class="form-actions js-form-wrapper form-wrapper" id="edit-actions"><input data-drupal-selector="edit-submit" type="submit" id="edit-submit" value="Search" class="button js-form-submit form-submit"></div>
</form>
Text Content
Skip to main content Menu Marco Programmer/Developer MAIN NAVIGATION * Drupal * Web Dev * App Dev * Servers * Projects * Products * Tools * Faith Marco Programmer/Developer MAIN NAVIGATION * Drupal * Web Dev * App Dev * Servers * Projects * Products * Tools * Faith BREADCRUMB 1. Home 2. How to Decrypt an RSA Private Key Using OpenSSL HOW TO DECRYPT AN RSA PRIVATE KEY USING OPENSSL Submitted by marcom on Mon, 02/22/2021 - 08:01 When installing a SSL certificate with a private key that is encrypted with a passphrase, you must decrypt the private key first. You can identify whether a private key is encrypted or not by opening the private key (.key or .pem file) using a text editor or command line. You should see the text ENCRYPTED if the private key is encrypted. $ cat encrypted_private.key -----BEGIN ENCRYPTED PRIVATE KEY----- ... Note: If the private key within the .pem file, you can simply copy the text between and including the -----BEGIN ENCRYPTED PRIVATE KEY----- and -----END ENCRYPTED PRIVATE KEY----- and save it into a new file. To decrypt the private key from the terminal: 1. Open terminal 2. Run the open ssl command to decrypt the file $ openssl rsa -in <encrypted_private.key> -out <decrypted_private.key> Enter pass phrase for encrypted_private.key: <enter the password> writing RSA key 3. Once the private key has been decrypted, open the file and you should not see the text ENCRYPTED anymore. $ cat decrypted_private.key -----BEGIN RSA PRIVATE KEY----- ... Tags OpenSSL MacOS Terminal ADD NEW COMMENT Your name Comment About text formats PLAIN TEXT * No HTML tags allowed. * Lines and paragraphs break automatically. * Web page addresses and email addresses turn into links automatically. RECENT CONTENT * How to remove submodule from Git 14 hours ago * Sort all directories based on their size 7 months ago * Find and Replace text in SQL files 7 months ago * Copy files with rsync in Linux 7 months ago * Search text recursively in log files 7 months ago * Proxy Domain to Another Server 7 months ago * Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in wp-includes/wp-db.php in WordPress in XAMPP environment 8 months ago * How To Keep Passwords Safe 1 year ago * How to Convert DER Encoded Certificates to PEM 1 year ago * Secure your XAMPP local web development environment for macOS 1 year ago SEARCH Search RELATED ARTICLES * Sort all directories based on their size 7 months ago * Copy files with rsync in Linux 7 months ago * How to Convert DER Encoded Certificates to PEM 1 year ago * Setup a local web development environment with XAMPP for MacOS 1 year 3 months ago * How to Install Homebrew on MacOS 1 year 4 months ago * Configure SSH to use SSH key to access Git on MacOS 1 year 5 months ago * Convert X.509 .cer to .pem using OpenSSL 1 year 6 months ago * Export and Import MySQL Databases in Terminal 1 year 9 months ago * Convert .pfx to .pem using OpenSSL 2 years 8 months ago * Configure Solr Server for Search API in Drupal 8 or 9 3 years 2 months ago * Install Apache Solr on MacOS 3 years 3 months ago * Display copyright disclaimer on your webcam using OBS 3 years ago GOOGLE ADSENSE ABOUT MARCO Full stack developer and systems administrator experienced in working in software design, programming, web and app development. Built award-winning websites, intranets, and mobile apps for a variety of clients, working at Upanup. FOOTER MENU * Drupal * Github * Facebook * LinkedIn * Contact Powered by Drupal