[openstack-dev] [Neutron] Representing PEM Format file as string

Jay Pipes jaypipes at gmail.com
Sun Jan 26 22:44:42 UTC 2014


On Sun, 2014-01-26 at 16:36 -0600, Rajesh_Mohan3 at Dell.com wrote:
> I am working on SSL VPN BP.
> 
> CA certificate is one of the resources. We decided to use PEM formatted certificates. It is multi-line string 
> 
>   1 -----BEGIN CERTIFICATE-----
>   2 MIID3TCCA0agAwIBAgIJAKRWnul3NJnrMA0GCSqGSIb3DQEBBQUAMIGmMQswCQYD
>  <snip>
>  21 0vO728pEcn6QtOpU7ZjEv8JLKRHwyq8kwd8gKMflWZRng4R2dj3cdd24oYJxn5HW
>  22 atXnq+N9H9dFgMfw5NNefwJrZ3zAE6mu0bAIoXVsKT2S
>  23 -----END CERTIFICATE-----
> 
> Is there a standard way to represent this as single line string? 

No. The standard representation is not a single-line string :)

> Maybe there is some other project that passes certificates on command line/url. 

You should instead pass the filename on the command line. You should not
pass the value of the certificate in a URL.

Best,
-jay

> I am looking for some accepted way to represent PEM formatted file on command line. 
> 
> I am thinking of concatenating all lines into single string and rebuilding the file when configuration file is generated.Will we hit any CLI size limitations if we pass long strings.
> 
> Thanks,
> -Rajesh Mohan
> 
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev





More information about the OpenStack-dev mailing list