Comments (5)
@veeti Is it for moving from certbot to manuale?
from manuale.
Any client that you can get the account key out of. I don't know if this is really necessary as you can just create a new account, but would be nice to have.
from manuale.
from manuale.
I've found a script, upgraded it to PEP8
https://gist.github.com/JonLundy/f25c99ee0770e19dc595
#!/usr/bin/python
import sys
import json
import base64
import binascii
with open(sys.argv[1]) as fp:
pkey = json.load(fp)
def enc(data):
missing_padding = 4 - len(data) % 4
if missing_padding:
data += b'=' * missing_padding
return '0x'+binascii.hexlify(base64.b64decode(data, b'-_')).upper()
for k, v in pkey.items():
if k == 'kty':
continue
pkey[k] = enc(v.encode())
print "asn1=SEQUENCE:private_key\n[private_key]\nversion=INTEGER:0"
print "n=INTEGER:{}".format(pkey[u'n'])
print "e=INTEGER:{}".format(pkey[u'e'])
print "d=INTEGER:{}".format(pkey[u'd'])
print "p=INTEGER:{}".format(pkey[u'p'])
print "q=INTEGER:{}".format(pkey[u'q'])
print "dp=INTEGER:{}".format(pkey[u'dp'])
print "dq=INTEGER:{}".format(pkey[u'dq'])
print "qi=INTEGER:{}".format(pkey[u'qi'])
./jwk-convert.py private_key.json > private-key.asn1
openssl asn1parse -genconf private-key.asn1 -noout -out private-key.der
openssl rsa -inform DER -in private-key.der -outform PEM -out private-key.key
from manuale.
Success!
- Join PEM lines to fit into JSON
- Modify
uri
's end "reg/1222333"
$ manuale info
Requesting account data...
{
...
...
from manuale.
Related Issues (20)
- How to renew authorisation? HOT 2
- Cert naming HOT 6
- Support authorization deactivation HOT 2
- ECC certs support HOT 3
- Using a CSR without the private key
- Support must-staple extension in CSR
- Display authorization time HOT 2
- Renew
- "issue" usage is incorrect HOT 3
- random certs deauthorzied and can not be renewed HOT 15
- env/bin/python setup.py install fails on OpenBSD 6.1 HOT 2
- Issue should require CSR XOR domain(s)
- Split challenge generation & challenge verification HOT 11
- Challenge support: tls-sni-01 HOT 1
- Challenge support: tls-sni-02
- Challenge support: ip-01
- ACME v2 support HOT 5
- Python 3.5 deprication notice HOT 5
- 'utf-8' codec can't decode byte 0xc5
- How can I renew certificates ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manuale.