Skip to content

Instantly share code, notes, and snippets.

bitplus

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
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 /sethst:kms.digiboy.ir
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus
slmgr.vbs /ckms
View press.one
{"sig":"b04bd0f79c6599507d007e61288730938f3d5b8a85b9991b2e96a4533361f041423f55b9a837d9a1685225dc967ae6ba0f566c544224c2802c4597e63fa960c41","msghash":"9392e0edfca4db20cc933b92907a6f50a6c6c6cadd1bf48c00b6ab0df9295c7b"}
View unwxapkg.py
#!/usr/bin/env python2
# usage python2 unwxapkg.py filename
import sys, os
import struct
class WxapkgFile(object):
nameLen = 0
name = ""
@bitplus
bitplus / aria2.bat
Created Nov 6, 2017 — forked from aa65535/aria2.bat
Aria2的配置文件 & 启动脚本
View aria2.bat
:: 启动后需要保留窗口, 关闭窗口则结束进程
aria2c --conf-path=aria2.conf -D
@bitplus
bitplus / server_certificates_to_pem.md
Created Jul 4, 2012 — forked from stevenhaddox/server_certificates_to_pem.md
Convert .crt & .key files into .pem file for HTTParty
View server_certificates_to_pem.md

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.