[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Handle-info] Replacing self-signed certificate



The Handle.Net software distribution includes hdl-convert-key, which can convert your PEM key to Handle format.

    hdl-convert-key key.pem -o serverCertificatePrivateKey.bin

should do it.

Note that hdl-convert-key will only work on a PKCS#8 PEM file (starts with -----BEGIN PRIVATE KEY----).  It won't work on a PKCS#1 PEM file (starts with -----BEGIN RSA PRIVATE KEY-----).  You can convert from PKCS#1 to PKCS$8 like this:

    openssl pkcs8 -topk8 -nocrypt -in old-style-pkcs1-key.pem

Best,
Robert

On Wed, Jan 25, 2023 at 8:16 AM Marc-J. Tegethoff <tegethoff@gbv.de> wrote:
Hello,

I'm trying to replace the self-signed certificate and key, which were
created by the Handle Server, serverCertificate.pem and
serverCertificatePrivateKey.bin.

I created a new certificate and key, but they are both in PEM format.
How do I create the serverCertificatePrivateKey.bin file from a PEM
formatted key?



--
With best regards

--------------------------------------------------
Verbundzentrale des GBV (VZG)
Marc-J.Tegethoff
Digitale Bibliothek
Platz der Göttinger Sieben 1
37073 Göttingen
Tel.  +49 (0) 551 / 39-31416
Marc.Tegethoff@gbv.de
https://www.gbv.de

Landesbetrieb des Landes Niedersachsen § 26 LHO
Ust-IdNr: DE815123124, umsatzsteuerbefreit nach § 4 Nr.20 a UStG
_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info
_______________________________________________
Handle-Info mailing list
Handle-Info@cnri.reston.va.us
http://www.handle.net/mailman/listinfo/handle-info