The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,512 other followers

Archive for the ‘Power User’ Category

openssl: checking out RSA private key files in .rsa and .pem format

Posted by jpluimers on 2019/03/19

While checking out an issue with the SSH server for ContinuaCI issue (see info below), I wanted to look at the files leading to the issue: .pem and .rsa files with the private key for the SSH server.

So I browsed through my series of openssl related articles to see if I already had made a script better explaining the cryptic openssl command-line parameters. I didn’t have it yet, but it turned out to be really simple:

C:\ProgramData\VSoft\ContinuaCI\SSHD>"C:\Program Files (x86)\Git\usr\bin\openssl.exe" rsa -in server_keypair.rsa
writing RSA key
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
C:\ProgramData\VSoft\ContinuaCI\SSHD>"C:\Program Files (x86)\Git\usr\bin\openssl.exe" rsa -in server_keypair.rsa -text
Private-Key: (1024 bit)
modulus:
    ..:..:..:.....
publicExponent: 35 (0x23)
privateExponent:
    ..:..:..:.....
prime1:
    ..:..:..:.....
prime2:
    ..:..:..:.....
exponent1:
    ..:..:..:.....
exponent2:
    ..:..:..:.....
coefficient:
    ..:..:..:.....
writing RSA key
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
C:\ProgramData\VSoft\ContinuaCI\SSHD>"C:\Program Files (x86)\Git\usr\bin\openssl.exe" rsa -in server_keypair.pem
Enter pass phrase for server_keypair.pem:
unable to load Private Key
2675996:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:529:
2675996:error:23077074:PKCS12 routines:PKCS12_pbe_crypt:pkcs12 cipherfinal error:p12_decr.c:108:
2675996:error:2306A075:PKCS12 routines:PKCS12_item_decrypt_d2i:pkcs12 pbe crypt error:p12_decr.c:139:
2675996:error:0907B00D:PEM routines:PEM_READ_BIO_PRIVATEKEY:ASN1 lib:pem_pkey.c:141:
C:\ProgramData\VSoft\ContinuaCI\SSHD>"C:\Program Files (x86)\Git\usr\bin\openssl.exe" rsa -in server_keypair.pem -passin pass:password
unable to load Private Key
2675996:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:529:
2675996:error:23077074:PKCS12 routines:PKCS12_pbe_crypt:pkcs12 cipherfinal error:p12_decr.c:108:
2675996:error:2306A075:PKCS12 routines:PKCS12_item_decrypt_d2i:pkcs12 pbe crypt error:p12_decr.c:139:
2675996:error:0907B00D:PEM routines:PEM_READ_BIO_PRIVATEKEY:ASN1 lib:pem_pkey.c:141:

The command-lines use the [WayBack]rsa tool with:

  • the -in parameter
  • (for the first file) the -text parameter to dump it into human readable form
  • (for the second file) the -passin parameter with a [WayBackpass phrase argument pass:password.

The server_keypair.pem file (having the header -----BEGIN ENCRYPTED PRIVATE KEY----- and footer -----END ENCRYPTED PRIVATE KEY-----) was a password protected RSA private key where somehow ContinuaCI had the wrong password for.

I’m not sure it’s a good idea that the server_keypair.pem file has not password at all.

Read the rest of this entry »

Posted in Continua CI, Continuous Integration, Development, OpenSSL, Power User, Security, Software Development | Leave a Comment »

Periods of drought reveals historic landscape and soil changes

Posted by jpluimers on 2019/03/18

Periods of long drought can reveal historic changes in the landscape and soil.

One example was posted last year at [Archive.is] Je bent een Sassemer als … of the natural ice staking area in Sassenheim, The Netherlands, which is part of a polder.

Historically, creeks were running through it, and later on drainage tubes were laid into the ground:

Read the rest of this entry »

Posted in History, LifeHacker, Power User | Leave a Comment »

How to Block Ads on YouTube App for Android?

Posted by jpluimers on 2019/03/18

The Android Google YouTube application is showing more and more ads, mostly irrelevant, and has moved the “skip video” button outside of the “countdown timer” control. 

Right now, there is no video – not even short videos lasting like 10 seconds – that goes without ads.

Time to research [WayBack] How to Block Ads on YouTube App for Android?.

The  most promising solutions:

–jeroen

Posted in LifeHacker, Power User, SocialMedia, YouTube | Leave a Comment »

My message was blocked – Google Product Forums

Posted by jpluimers on 2019/03/18

Cool: https://support.google.com/mail/?p=RfcMessageNonCompliant

So Google does RFC checkking: [Archive.isMy message was blocked – Google Product Forums and shows bot the above link and this in the SMTP protocol:

“Our system has detected that this message is not RFC 5322 compliant,”

After that is the actual reason (for instance no From).

–jeroen

Posted in GMail, Google, Power User | Leave a Comment »

GitHub – ArchiveTeam/googleplus-grab: Archiving Google+.

Posted by jpluimers on 2019/03/18

Soon this is a thing of the past, but for just a few more days, you can help: Archiving Google+.

Either run this project: [WayBack] GitHub – ArchiveTeam/googleplus-grab: Archiving Google+.

Or even better: run the appliance, and help the WayBack machine with any archiving projects setup by the virtual appliance: the [WayBack] ArchiveTeam Warrior – Archiveteam.

See some of their other pages for more background information:

You can donate both to the archive team, and the internet archive:

How is G+ archiving doing?

The tracker is well under way: [WayBack] Googleplus tracker Dashboard. History: archive.is 1; archive.is 2

Viewing is simple, but what about saving?

[WayBack] If You See Something, Save Something – 6 Ways to Save Pages In the Wayback Machine | Internet Archive Blogs

The WayBack machine has a few APIs (see[WayBack] Wayback Machine APIs | Internet Archive), and includes support for [WayBack] JSONP – Wikipedia.

Example URLs for the most simple API:

 

Removing content

If you want to remove your own content from the WayBack machine, you can: [WayBack] How do I remove an item page from the site? – Internet Archive Help Center

More

[WayBack] Saving of public Google+ content at the Internet Archive’s Wayback Machine by the Archive Team has begun : plexodus

–jeroen

via: [WayBack] The archiving of public Google+ content to the Internet Archive by the Archive Team has has begun. What does this mean, how does this affect you, and w… – Jeroen Wiert Pluimers – Google+

Posted in Development, G+: GooglePlus, Google, InternetArchive, Power User, Python, Scripting, SocialMedia, Software Development, WayBack machine | Leave a Comment »

 
%d bloggers like this: