Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block bitplus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bitplus / Office_kms
Created Apr 22, 2019 — forked from CHEF-KOCH/Office_kms
KMS server Windows
View Office_kms
cd\Program Files\Microsoft Office\Office16
cd\Program Files (x86)\Microsoft Office\Office16
cscript OSPP.VBS /
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus
slmgr.vbs /ckms
#!/usr/bin/env python2
# usage python2 filename
import sys, os
import struct
class WxapkgFile(object):
nameLen = 0
name = ""
bitplus / aria2.bat
Created Nov 6, 2017 — forked from aa65535/aria2.bat
Aria2的配置文件 & 启动脚本
View aria2.bat
:: 启动后需要保留窗口, 关闭窗口则结束进程
aria2c --conf-path=aria2.conf -D
bitplus /
Created Jul 4, 2012 — forked from stevenhaddox/
Convert .crt & .key files into .pem file for HTTParty

Two ways to do it, but only worked for me so I'll put it first and the second for reference:

$ openssl pkcs12 -export -in hostname.crt -inkey hsotname.key -out hostname.p12
$ openssl pkcs12 -in hostname.p12 -nodes -out hostname.pem

Other options for this method in comments below:

# Note, the -certfile root.crt appends all CA certs to the export, I've never needed these so it's optional for my personal steps
$ openssl pkcs12 -export -in hostname.crt -inkey hsotname.key -certfile root.crt -out hostname.p12
# Note, I've always had my hostname.crt as part of my .pem, so I keep my certs but apparently you may not have to, hence the nocerts flag being an extra option in this sample
You can’t perform that action at this time.