syss-research / clone-cert Goto Github PK
View Code? Open in Web Editor NEWSimple shell script to "clone" X.509 certificates
License: MIT License
Simple shell script to "clone" X.509 certificates
License: MIT License
Right now, the modulus is replaced. A certificate using elliptic curves doesn't have a modulus.
I am trying to use two files: .cert and .key with apache / ngnix with no luck.
Any advaice?
Thanks in advance !!
As I couldn't find which openssl version (or OS for that matter) you require to run this project, I tried running with OpenSSL 1.0.2g... is that fine?
Anyway, I get:
$ ./clone-cert.sh cert.pem
Verification failed, probably due to a bug
So I changed to set -o xtrace
and it seems to run quite far but then:
$ ./clone-cert.sh cert.pem
[...]
+ diff -q /dev/fd/63 /dev/fd/62
++ openssl x509 -in cert.pem.cert -pubkey -noout
++ openssl rsa -in cert.pem.key -pubout
+ openssl verify -CAfile cert.pem.CA.cert cert.pem.cert
+ echo Verification failed, probably due to a bug
Verification failed, probably due to a bug
Running only the verification:
$ openssl verify -CAfile cert.pem.CA.cert cert.pem.cert
cert.pem.cert: C = DE, O = EXAMP AG, OU = YxxxxxxxYxxxxxxx, CN = EXAMP-Yxxxxxxx Yxxxxxx AG, UID = 12344e8f-1034-2e81-7c3f-e516bf364951
error 20 at 0 depth lookup:unable to get local issuer certificate
Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.