EJBCA 6.1.1 batch generation and missing EOL

aloeee
2014-05-07
2014-05-28
  • aloeee

    aloeee - 2014-05-07

    Hi,

    I don't know if this is a known issue or not, but when I batch generate the end-entity certificate in PEM format, the output files are missing the last EOL (end-of-line) character.

    For example:

    od -a "Test3 cert.pem" | tail
    0003000 l 6 j b U g V F k T P x z R 6 n
    0003020 a 0 h n a K h W d B 5 + 8 M q 4
    0003040 L 7 4 8 C Z b g 6 a w o 0 9 Y H
    0003060 a V / nl 3 B q k + X 9 y 8 o D i
    0003100 0 Y 3 g p F r B Y k Q R n W z b
    0003120 N Q A 2 e o n B I H 5 S 7 Q 8 6
    0003140 x v s T u A = = nl - - - - - E N
    0003160 D sp C E R T I F I C A T E - - -
    0003200 - -
    0003202


    I think the line 0003200 should end with the nl

    When I tried to merge the public and private files together

    cat "Test cert.pem" "Test3 cert-Key.pem" >> output.crt

    the output file is incorrect:

    cat output.crt
    -----BEGIN CERTIFICATE-----
    MIIEoTCCA4mgAwIBAgIIKi4Go204SPcwDQYJKoZIhvcNAQELBQAwdTEdMBsGA1UE
    AwwUUGxheXRlY2ggSW5mcmFMYWIgQ0ExKTAnBgNVBAsMIEluZnJhc3RydWN0dXJl
    IE9wZXJhdGluZyBTeXN0ZW1zMRwwGgYDVQQKDBNQbGF5dGVjaCBFc3RvbmlhIE9V
    MQswCQYDVQQGEwJFRTAeFw0xNDA1MDYwODQyMjBaFw0xODAxMDUwODQyMjBaMHEx
    Y4b+gHQgDGauQFL1PXzbzGC82g0HLOXHiN0kHmgyiufU9WqOk9VbqQ4XrBb29rSq
    RBaEeSMuFiIXZ68CZ7vKVrbHVKZhAfN/n/4+fpD7nPPdlVKjfnYcU2ZqLTN7i3yx
    AKI7kfh3kefzDl6jbUgVFkTPxzR6na0hnaKhWdB5+8Mq4L748CZbg6awo09YHaV/
    3Bqk+X9y8oDi0Y3gpFrBYkQRnWzbNQA2eonBIH5S7Q86xvsTuA==
    -----END CERTIFICATE----------BEGIN PRIVATE KEY-----
    MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCkyD52DmiXEq/3
    z/dwI1pu0xL4Z3ynZyveCdMmInvSPmROJ13+lr+sJmz1Klso6EMc2h7EcUdcyOGS
    bEFoAD6/uGRN+tYBIE9iVRN4VI5ROq9eE0YdoWC+x+Xdaq98cSuuVbbETdjQ6Iuj

    Alo

     
  • aloeee

    aloeee - 2014-05-27

    So, missing EOL is by design?

     
  • Dimitrios Tachtsioglou

    In case is needed we add it manually.
    If it is required then we can add it.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks